[Chicken-users] Re: [CMake] setting a default build type

Brandon J. Van Every bvanevery at gmail.com
Thu Sep 7 23:53:59 EDT 2006


felix winkelmann wrote:
> On 9/7/06, Brandon J. Van Every <bvanevery at gmail.com> wrote:
>>
>>  On MSVC my CMakeLists.txt generates Debug, Release, MinSizeRel, and
>> RelWithDebInfo build types. I want to keep all 4 of 'em. I want to
>> select MinSizeRel as the default build, so that if an end user just
>> fires up BUILD_ALL and does nothing else, he'll get a MinSizeRel build.
>> The default default is "Debug" and that's not what I want. So, is there
>> a mechanism to specify the default build type? I was unable to deduce
>> it from the docs if there is one. Seems clear enough how to ship *one*
>> build type, I'd just do (SET CMAKE_BUILD_TYPE MinSizeRel). But I want
>> all 4 to be shipped.
>
> Just a side note, in case my misunderstanding of the build-type triggered
> an unneeded feature request: I'm fine with "Debug" being the default for
> Project builds (like MSVC/Project). 

It's in the "would be nice to have" level of importance.  I would rather 
a user do nothing and get the best optimized build.  I'm sure that's 
true for many other projects also.

> I asked Brandon to make MinSizeRel the default
> because I didn't get that this is only supported for mentioned builds.

That is to say, only MSVC has Debug, Release, MinSizeRel, and 
RelWithDbgInfo builds at present.  I believe there's an extant feature 
request about making these universal.

> Just overriding the CFLAGS via ccmake is fine for me.

Cheers,
Brandon Van Every




More information about the CMake mailing list