---------- Forwarded message ---------- From: Alexander Neundorf <[email protected]> To: [email protected] Date: Wed, 15 Apr 2009 22:43:59 +0200 Subject: Re: [CMake] CMake and iPhone support On Friday 10 April 2009, Robert Dailey wrote: > Can CMake generate an Xcode project for iPhone SDK development (For both > the simulator and device SDKs)? From the looks of it we cannot do that, > especially when we use MACOSX_BUNDLE in add_executable().
>As Bill suggested, maybe you can do this via setting CMAKE_OSX_ARCHITECTURES. >From what I can gather in the cmake sources, setting CMAKE_OSX_ARCHITECTURES changes the Xcode build setting ARCHS, which allows you to select between architectures such as ppc, i386, and armv6. What the original poster probably wants is the Xcode build setting SDKROOT, which cmake calls CMAKE_OSX_SYSROOT. (http://developer.apple.com/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-SW105) Rather than changing these settings in cmake, you can simply generate an Xcode project and then select the iPhone build via Project > Set active SDK. Getting access to all of Xcode's build settings and some documentation would be nice ... (http://www.cmake.org/pipermail/cmake/2009-April/028695.html) -Claus _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
