[CMake] Mac OS 10.6 i386 architecture

Michael Wild themiwi at gmail.com
Mon Aug 31 10:49:37 EDT 2009


On 31. Aug, 2009, at 16:45, Yves Starreveld wrote:

> This was CMake CVS from this AM. Despite specifying i386, x86_64 was  
> built.
>
> Yves
> On 2009-08-31, at 08:34 , Sean McBride wrote:
>
>> On 8/31/09 6:53 AM, Yves Starreveld said:
>>
>>> Despite setting CMAKE_OSX_ARCHITECTURES as i386, cmake builds x86_64
>>> binaries on Snow Leopard, as default setting for gcc version 4.2.1  
>>> is
>>> now x86_64.
>>
>> Which version of CMake?  gcc 4.2 on 10.6 now defaults to x86_64  
>> whereas
>> on 10.5 it defaulted to i386, as you noticed.
>>
>> I recall CMake used to (still does?) ignore CMAKE_OSX_ARCHITECTURES  
>> is
>> there was only 1 item listed. If you try specifying say 'ppc;i386' do
>> you get such a binary?  Could you try CMake CVS?
>>
>>

What happens if you pass '-arch i386' in the CMAKE_C_FLAGS and  
CMAKE_CXX_FLAGS?

Michael



More information about the CMake mailing list