Hi cmake-list,

We've run into a minor problem when adapting our source code Gromacs to use 
CMake for the default build environment.

CMake 2.8 doesn't use any string for the default OS X architecture, which on 
Snow Leopard is interpreted as the default x86_64.
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 values (e.g. 8 
for "long int").

Even if I set the architecture to "i386" the very first thing I do in ccmake, 
the 64-bit values appear to be cached(?), and we then happily continue to 
create a 32-bit build with 64-bit SIZEOF_XXX values, which tends to break 
things in a hard way :-)

If we use -DCMAKE_OSX_ARCHITECTURES=i386 on the command line when starting a 
new build tree everything works fine.  


Is there any way we can work around this? My main worry is that people will 
simply start ccmake, set the architecture, and then produce a bad build without 
getting any warnings about it... 
(we tend to use i386 pretty frequently since we need to create compatible 
versions for distributed computing).


Cheers,

Erik 

----------------------------------------------------------
Erik Lindahl <[email protected]>
Professor, Computational Structural Biology
Center for Biomembrane Research & Swedish e-Science Research Center
Department of Biochemistry & Biophysics, Stockholm University
Tel: +468164675 Cell: +46703844534

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to