Re: [CMake] OS X architecture changes interfere with CheckTypeSize()?

2010-08-11 Thread Erik Lindahl
it's a bit strange to the novice that it _only_ works if you add the architectures on the command line, not if you change it in the GUI (which I think is what most users - like me - will try first :-) Cheers, Erik ------ Erik Lindahl Prof

Re: [CMake] OS X architecture changes interfere with CheckTypeSize()?

2010-08-11 Thread Erik Lindahl
e to display some sort of warning if it is changed, and stress that it will not update architecture-dependent data in the cache? Cheers, Erik ------ Erik Lindahl Professor, Computational Structural Biology Center for Biomembrane Research & S

Re: [CMake] OS X architecture changes interfere with CheckTypeSize()?

2010-08-11 Thread Erik Lindahl
Hi Sean, On Aug 11, 2010, at 8:08 PM, Sean McBride wrote: > On Wed, 11 Aug 2010 18:08:35 +0200, Erik Lindahl said: > >> All the CheckTypeSize() tests then seem to run directly when e.g. ccmake >> is invoked, and they thus set all SIZEOF_XXX defines to the 64-bit >> valu

Re: [CMake] OS X architecture changes interfere with CheckTypeSize()?

2010-08-11 Thread Erik Lindahl
"long" or "size_t" > in things like calculations where on 32 bit systems the value would overflow. > Or pointer math in some situations. Not sure what to tell you. Most projects > have something like this in them. > > Cheers > -- > Mike Jackson > &g

Re: [CMake] OS X architecture changes interfere with CheckTypeSize()?

2010-08-11 Thread Erik Lindahl
pair of files that get configured using > "configure_file()" cmake command. Then in your code you explicitly use the > types that you have defined above and all should work out when compiling on > OS X with multiple Archs because the above files will control how the various > ambiguous types get compiled. Which means that your s

[CMake] OS X architecture changes interfere with CheckTypeSize()?

2010-08-11 Thread Erik Lindahl
ed computing). Cheers, Erik ------ Erik Lindahl Professor, Computational Structural Biology Center for Biomembrane Research & Swedish e-Science Research Center Department of Biochemistry & Biophysics, Stockholm University Tel: +468164675 Cell: +46703844534