summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-05-16 18:38:40 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-05-16 18:38:40 (GMT)
commitf122dd3d4732d086106e24dc5d78793d4c256a2b (patch)
treea79be988bd20167f0877a9a28653ed99e2db7822 /Source/cmGlobalVisualStudio7Generator.cxx
parente477f21af2b9200a93f9f83c3663cb1a919abe7c (diff)
parent42bb42d19723323e6e48346b1437e04a251addfa (diff)
downloadCMake-f122dd3d4732d086106e24dc5d78793d4c256a2b.zip
CMake-f122dd3d4732d086106e24dc5d78793d4c256a2b.tar.gz
CMake-f122dd3d4732d086106e24dc5d78793d4c256a2b.tar.bz2
Merge topic 'vs-configurations'
42bb42d VS: Always initialize CMAKE_CONFIGURATION_TYPES in IDE generators
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index 8a186e7..9a34ecf 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -31,6 +31,16 @@ void cmGlobalVisualStudio7Generator
mf->AddDefinition("CMAKE_GENERATOR_NO_COMPILER_ENV", "1");
mf->AddDefinition("CMAKE_GENERATOR_FC", "ifort");
this->AddPlatformDefinitions(mf);
+ if(!mf->GetDefinition("CMAKE_CONFIGURATION_TYPES"))
+ {
+ mf->AddCacheDefinition(
+ "CMAKE_CONFIGURATION_TYPES",
+ "Debug;Release;MinSizeRel;RelWithDebInfo",
+ "Semicolon separated list of supported configuration types, "
+ "only supports Debug, Release, MinSizeRel, and RelWithDebInfo, "
+ "anything else will be ignored.",
+ cmCacheManager::STRING);
+ }
// Create list of configurations requested by user's cache, if any.
this->cmGlobalGenerator::EnableLanguage(lang, mf, optional);