[CMake] Linking against OS X Frameworks

Sean McBride sean at rogue-research.com
Tue Aug 11 15:33:46 EDT 2009


On 8/11/09 11:27 AM, ML said:

>OK, here is what I have done now:
>
>  *SNIP*

Your error messages reference an FSCopyObject.c which we have not seen. 
Can you repro your problem with a simple test.c that merely #inclues
Carbon/Carbon.h ?

>Which says for gcc to compile
>
>in 32-bit: gcc -m32 -o output32 hello.c
>in 64-bit: gcc -m64 -o output64 hello.c
>
>8. My question is now what can I set in my initial cache to tell gcc  
>to set 32-bit by default? Or if i can't do this in initial cache, how  
>do I solve it?  Am I on the right track with this logic?

With Apple's gcc fork (ie the one from Xcode) you shouldn't use -m32 -
m64, rather it is the -arch command that is needed.

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the CMake mailing list