MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014269 | CMake | CMake | public | 2013-07-03 12:56 | 2013-12-02 08:51 |
Reporter | dbcfd | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | CMake 2.8.11.1 | ||||
Target Version | CMake 2.8.12 | Fixed in Version | CMake 2.8.12 | ||
Summary | 0014269: CMAKE_CONFIGURATION_TYPES does not work with Visual Studio | ||||
Description | CMAKE_CONFIGURATION_TYPES cannot be set to work with Visual Studio (possibly other multi configuration ides). Per 0006788, it should work by setting prior to calling project, however this does not produce the desired behavior. Using the following CMake on a clean build: message("CONFIGS IS ${CMAKE_CONFIGURATION_TYPES}") set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "" FORCE) message("CONFIGS IS ${CMAKE_CONFIGURATION_TYPES}") #project variables project(${_project} CXX) message("CONFIGS IS ${CMAKE_CONFIGURATION_TYPES}") set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "" FORCE) message("CONFIGS IS ${CMAKE_CONFIGURATION_TYPES}") The output will be CONFIGS IS Debug;Release CONFIGS IS Debug;Release CONFIGS IS Debug;Release;MinSizeRel;RelWithDebInfo CONFIGS IS Debug;Release Indicating that the Project command resets the cached variable. | ||||
Steps To Reproduce | |||||
Additional Information | Modules\Platform\Windows-MSVC.cmake, line 55 if(NOT CMAKE_NO_BUILD_TYPE AND CMAKE_GENERATOR MATCHES "Visual Studio") set (CMAKE_NO_BUILD_TYPE 1) set (CMAKE_CONFIGURATION_TYPES "Debug;Release;MinSizeRel;RelWithDebInfo" CACHE STRING "Semicolon separated list of supported configuration types, only supports Debug, Release, MinSizeRel, and RelWithDebInfo, anything else will be ignored.") mark_as_advanced(CMAKE_CONFIGURATION_TYPES) endif() This should only set CMAKE_CONFIGURATION_TYPES if not already set: if(NOT CMAKE_NO_BUILD_TYPE AND CMAKE_GENERATOR MATCHES "Visual Studio") set (CMAKE_NO_BUILD_TYPE 1) if(NOT CMAKE_CONFIGURATION_TYPES) set (CMAKE_CONFIGURATION_TYPES "Debug;Release;MinSizeRel;RelWithDebInfo" CACHE STRING "Semicolon separated list of supported configuration types, only supports Debug, Release, MinSizeRel, and RelWithDebInfo, anything else will be ignored.") endif() mark_as_advanced(CMAKE_CONFIGURATION_TYPES) endif() | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | Reproduce.zip (813) 2013-07-03 14:33 https://public.kitware.com/Bug/file/4811/Reproduce.zip | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-07-03 12:56 | dbcfd | New Issue | |||
2013-07-03 13:06 | dbcfd | Note Added: 0033466 | |||
2013-07-03 14:33 | dbcfd | File Added: Reproduce.zip | |||
2013-07-03 14:34 | dbcfd | Note Added: 0033469 | |||
2013-07-03 15:03 | dbcfd | Note Added: 0033471 | |||
2013-07-03 16:26 | Brad King | Note Added: 0033474 | |||
2013-07-03 16:53 | Brad King | Note Added: 0033477 | |||
2013-07-03 16:53 | Brad King | Assigned To | => Brad King | ||
2013-07-03 16:53 | Brad King | Status | new => resolved | ||
2013-07-03 16:53 | Brad King | Resolution | open => fixed | ||
2013-07-03 16:53 | Brad King | Fixed in Version | => CMake 2.8.12 | ||
2013-07-03 16:53 | Brad King | Target Version | => CMake 2.8.12 | ||
2013-07-03 17:06 | dbcfd | Note Added: 0033478 | |||
2013-07-03 17:06 | dbcfd | Status | resolved => feedback | ||
2013-07-03 17:06 | dbcfd | Resolution | fixed => reopened | ||
2013-07-03 18:46 | dbcfd | Note Added: 0033481 | |||
2013-07-03 18:46 | dbcfd | Status | feedback => assigned | ||
2013-07-08 08:30 | Brad King | Note Added: 0033498 | |||
2013-07-08 08:30 | Brad King | Status | assigned => resolved | ||
2013-07-08 08:30 | Brad King | Resolution | reopened => fixed | ||
2013-12-02 08:51 | Robert Maynard | Note Added: 0034636 | |||
2013-12-02 08:51 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|