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

Erik Lindahl lindahl at cbr.su.se
Wed Aug 11 16:31:08 EDT 2010


Hi Mike,

On Aug 11, 2010, at 10:16 PM, Michael Jackson wrote:
> 
> So CMake is _trying_ to help you as best it can at the moment. You should still be able to wrap the test to CheckTypeSize() with your own function, detect the change to CMAKE_OSX_ARCHITECTURES and the forcibly rerun the test again.
> 
> Hope some of that helps.

Yes, the entire discussion has been of great help, and I actually wasn't aware that you could get the _entire_ #define code in one string out of the routine - I was trying to use the Key/value pairs.

However, even in this case 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 <lindahl at cbr.su.se>
Professor, Computational Structural Biology
Center for Biomembrane Research & Swedish e-Science Research Center
Department of Biochemistry & Biophysics, Stockholm University
Tel: +468164675 Cell: +46703844534



More information about the CMake mailing list