[CMake] OSX universal binary support

2008-01-14 Thread Nicholas Yue
Hi I see a mention of support for OSX universal binary in the release notes. However, from running cmake --help-html, I was unable to find any explanation on how to use the feature. I am building on the command line using make. However, if I need to use XCode build to get the feature wo

Re: [CMake] OSX universal binary support

2008-01-15 Thread Bill Hoffman
Mike Jackson wrote: There is and there is not. What you need to try is putting -arch ppc -arch i386 for both the CXX_FLAGS and C_FLAGS using ccmake. That works for me in 10.4.11 with gcc. Actually, there is full support for universal binaries in CMake. If you set this cmake cache variable:

Re: [CMake] OSX universal binary support

2008-01-15 Thread Mike Jackson
There is and there is not. What you need to try is putting -arch ppc -arch i386 for both the CXX_FLAGS and C_FLAGS using ccmake. That works for me in 10.4.11 with gcc. Mike On Jan 15, 2008, at 1:31 AM, Nicholas Yue wrote: Hi I see a mention of support for OSX universal binary in the

Re: [CMake] OSX universal binary support

2008-01-15 Thread Sean McBride
On 1/15/08 9:59 AM, Mike Jackson said: In addition to what other's said, I'll just add the following: >Funny.. last time I asked I was told to use "i386 ppc" which did not >work and so I started adding the flags myself. Using a ";" instead of >a space does allow universal binaries to be produced.

Re: [CMake] OSX universal binary support

2008-01-15 Thread Mike Jackson
On Jan 15, 2008, at 8:44 AM, Bill Hoffman wrote: Mike Jackson wrote: There is and there is not. What you need to try is putting -arch ppc -arch i386 for both the CXX_FLAGS and C_FLAGS using ccmake. That works for me in 10.4.11 with gcc. Actually, there is full support for universal binari

Re: [CMake] OSX universal binary support

2008-01-16 Thread Bill Hoffman
Sean McBride wrote: On 1/15/08 9:59 AM, Mike Jackson said: In addition to what other's said, I'll just add the following: Funny.. last time I asked I was told to use "i386 ppc" which did not work and so I started adding the flags myself. Using a ";" instead of a space does allow universal b

Re: [CMake] OSX universal binary support

2008-01-17 Thread Paul Oppenheim (Poppy Linden)
Bill Hoffman wrote: Sean McBride wrote: On 1/15/08 9:59 AM, Mike Jackson said: CMake also supports building 4-way fat by specifying "i386;ppc;ppc64;x86_64". I have added a FAQ for this here: http://www.cmake.org/Wiki/CMake_FAQ#Platform-specific_questions If anyone wants to add more feel fr