[CMake] Changing VS2005 Configuration

Josef Karthauser joe.karthauser at geomerics.com
Fri Oct 12 03:50:57 EDT 2007


> -----Original Message-----
> From: cmake-bounces+joe.karthauser=geomerics.com at cmake.org
> [mailto:cmake-bounces+joe.karthauser=geomerics.com at cmake.org] On
Behalf
> Of Jakob Santner
> Sent: 12 October 2007 07:40
> To: cmake at cmake.org
> Subject: [CMake] Changing VS2005 Configuration
> 
> Hello,
> 
> I am using Visual Studio 8 and cmake 2.4p7 and am trying to set the
> configuration for a specific project to 'Release'. So I added
> 
> SET(CMAKE_BUILD_TYPE Release)
> 
> to CMakeLists.txt and ran cmake. The Visual Studio configuration
> manager
> still lists all projects in 'Debug' configuration.
> 
> What am I doing wrong?

For visual studio project files, you can set the configurations to
include using the CMAKE_CONFIGURATION_TYPES variable.

    SET(CMAKE_CONFIGURATION_TYPES Release)

Joe


More information about the CMake mailing list