[CMake] Recommended Multilib Build Approach?

Alexander Neundorf a.neundorf-work at gmx.net
Mon Jul 30 15:44:25 EDT 2012


On Monday 30 July 2012, Xavier Besseron wrote:
> Hello Greg,
> 
> 
> To build i386 binaries on my 64-bit system with multilib, I just do
> something like this:
> 
> mkdir build-i386
> cd build-i386
> CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-melf_i386" cmake ../src/
> 
> And to build x86-64 binaries on my 64-bit system,  I don't need to
> specify anything since it is the default behavior.

Is this maybe somewhat similar to the fat binaries on OSX ?
How is this handled by CMake ?

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120730/08019aa7/attachment-0001.htm>


More information about the CMake mailing list