[CMake] Xcode Generator

Bill Hoffman bill.hoffman at kitware.com
Wed Dec 13 13:57:21 EST 2006


Sean McBride wrote:
> On 2006-12-13 18:27, Axel Roebel said:
>
>   
>> Everything works fine for unix makefiles (on Linux and Mac OS X)
>>
>> Now, we tried the Xcode generator and we am having
>> some minor problems with it.
>>
>> 1) 
>> It appears that the default build style in the Xcode project is 
>> set to debug while for my makefile build system it always is set to release.
>> So we wonder why these two are different.
>>
>> Note, that we set CMAKE_BUILD_TYPE to release.
>>     
>
> This once surprised me too.  Bill told me:
>
> "CMAKE_BUILD_TYPE is ignored by Xcode and VS IDE projects. You have to
> change the MAKECOMMAND to do the right build.  It is a command line
> option to xcodebuild that has to be changed."
>
>   
Since VS IDE and Xcode support building different builds from the GUI, 
Debug, Release, etc,
CMake generates projects that do the same.  There is not one build type 
like in the Makefile projects.
The user when running the GUI, has to pick which one to build.  With MS 
IDE, there is no way for
us to change the default build type in one of the files we can 
generate.   There maybe a way in Xcode,
but I have not found it (or really looked for it).   So, you have to 
pick the build type from the GUI,
or set the build type from the command line with xcodebuild.

-Bill



More information about the CMake mailing list