Re: [CMake] setting a default build type

2006-09-08 Thread Laurentiu Nicolae
Hi, We are currently using MSBuild to select the build configuration. The command line looks like this: msbuild All.sln /property:Configuration="Release" /logger:FileLogger,Microsoft.Build.Engine;logfile="All.log" This line will build the ALL_BUILD target in release mode. (We tried to use VCBuil

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

2006-09-07 Thread Brandon J. Van Every
felix winkelmann wrote: On 9/7/06, Brandon J. Van Every <[EMAIL PROTECTED]> 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

Re: [CMake] setting a default build type

2006-09-07 Thread David Cole
Given a very basic HelloWorld application in Visual Studio, there is only one way that I have found to force it to choose something other than "Debug" by default: eliminate the "Debug" configuration. In the very basic case (generated by Visual Studio wizard) there are only two configurations:

Re: [CMake] setting a default build type

2006-09-07 Thread Brandon J. Van Every
Alan W. Irwin wrote: On 2006-09-07 09:35-0700 Brandon J. Van Every wrote: Alan W. Irwin wrote: On 2006-09-07 00:56-0700 Brandon J. Van Every 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

Re: [CMake] setting a default build type

2006-09-07 Thread Brandon J. Van Every
Brad King wrote: Brandon J. Van Every wrote: Brad King wrote: This would be a nice feature but I don't know how to implement it. Try generating a project and then manually editing the project files in such a way that the IDE selects a different configuration by def

Re: [CMake] setting a default build type

2006-09-07 Thread Alan W. Irwin
On 2006-09-07 09:35-0700 Brandon J. Van Every wrote: Alan W. Irwin wrote: On 2006-09-07 00:56-0700 Brandon J. Van Every 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 def

Re: [CMake] setting a default build type

2006-09-07 Thread Brad King
Brandon J. Van Every wrote: > Brad King wrote: >> This would be a nice feature but I don't know how to implement it. Try >> generating a project and then manually editing the project files in such >> a way that the IDE selects a different configuration by default. Don't >> forget to remove the .s

Re: [CMake] setting a default build type

2006-09-07 Thread Brandon J. Van Every
Brad King wrote: Brandon J. Van Every 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 noth

Re: [CMake] setting a default build type

2006-09-07 Thread Brandon J. Van Every
Alan W. Irwin wrote: On 2006-09-07 00:56-0700 Brandon J. Van Every 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

Re: [CMake] setting a default build type

2006-09-07 Thread Jan Woetzel
Alan W. Irwin wrote: Its a cached variable. So I think what you want is SET (CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "Flags used by the compiler No, Cmake (at least 2.4.2) is not generating any ".suo" file at all. Thus neither CMAKE_BUILD_TYPE nor CMAKE_CONFIGURATION_TYPES will help with

Re: [CMake] setting a default build type

2006-09-07 Thread Alan W. Irwin
On 2006-09-07 00:56-0700 Brandon J. Van Every 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

Re: [CMake] setting a default build type

2006-09-07 Thread Jan Woetzel
Brandon J. Van Every wrote: So, is there a mechanism to specify the default build type? I think the .suo file stores this information which is not generated by CMake, actually. For now (as a workaround) you may want to add a batchfile to select a configuration with devenv command line pa

Re: [CMake] setting a default build type

2006-09-07 Thread Brad King
Brandon J. Van Every 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 MinS

[CMake] setting a default build type

2006-09-07 Thread Brandon J. Van Every
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 defau