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 _______________________________________________ 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