[CMake] Linking against OS X Frameworks

Michael Wild themiwi at gmail.com
Mon Aug 10 00:40:39 EDT 2009


On 10. Aug, 2009, at 1:27, ML wrote:

> Hi Guys,
>
> With all of your help and reading intensely though the documentation  
> to understand each command. I am starting to really get this.
>
> I am doing great now.
>
> What is the command to force 32-bit carbon as now that I set 10.4 as  
> my SDK and I am running on a 64 -bit machine I am getting errors like:
>
> In file included from /Volumes/Data/jtsm/Checkout/Universal GUI/ 
> source/thirdparty/OSX/MoreFilesX/MoreFilesX.c:80:
> /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/ 
> Carbon.framework/Headers/Carbon.h:20:6: error: #error 64-bit not  
> supported
>
> I wish Apple had decided to support 64-bit Carbon, but that is  
> another thread all together.
>
> -Jason
>


Just set CMAKE_OSX_ARCHITECTURES to i368, ppc or if you want a  
universal binary, "i368;ppc"


Michael


More information about the CMake mailing list