[CMake] CMake_BUILD_TYPE not imported to XCode 4.0.1

Michael Wild themiwi at gmail.com
Tue Jun 21 10:07:00 EDT 2011


On 06/21/2011 03:31 PM, Ignaz Reicht wrote:
> Dear CMake list,
> 
> when building external libraries such as ITK, VTK, etc. from source,
> XCode 4.0.1 is not able to import the BuildType parameter set in Cmake
> 2.8-4. When setting CMAKE_BUILD_TYPE = Release, still XCode uses Debug
> as build type. Has someone else observed this behavior?
> 
> thanks
> iggy

CMAKE_BUILD_TYPE is irrelevant for multi-config generators, such as
Xcode or MSVC. Either select you desired build type in the IDE, or if
you are building using the command-line use the appropriate switches
(e.g. for "cmake --build" use the --config flag, for cmakexbuild or
xcodebuild use the -configuration flag, for MSBuild use
/p:Configuration=Debug).

Michael


More information about the CMake mailing list