[CMake] CMAKE_CONFIGURATION_TYPES & MSVC7.0

Brad King brad.king at kitware.com
Thu Jan 5 12:06:28 EST 2006


xavier delannoy wrote:
> I have try, this doesn't work ;(
> it seems that Cmake already overwrite my value.
> 
> here is my CMakeLists.txt
> 
> PROJECT(NAS C)
> 
> CMAKE_MINIMUM_REQUIRED(VERSION 2)
> SET(UPDATE_TYPE cvs)
> 
> SET(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "must be 
> force" FORCE)

The generator selects its set of configurations when it enables the set 
of available languages.  This occurs when the first PROJECT command 
executes.  Once the set of configurations is selected it re-creates the 
list in the cache.  Try this:

SET(CMAKE_CONFIGURATION_TYPES Debug Release)
PROJECT(NAS C)

and test it with a fresh (emtpy) build tree.

-Brad


More information about the CMake mailing list