summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-01-28 14:52:47 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-01-28 14:52:47 (GMT)
commite6221ed2c41de86020083c4d2af58c7b28d36bb0 (patch)
tree09c6109cf44d3a35b9a23f00a8d2d1d1dc743cd9 /Source
parent6744616fb2c6397893c5b41bb4473fa8d420a57b (diff)
downloadCMake-e6221ed2c41de86020083c4d2af58c7b28d36bb0.zip
CMake-e6221ed2c41de86020083c4d2af58c7b28d36bb0.tar.gz
CMake-e6221ed2c41de86020083c4d2af58c7b28d36bb0.tar.bz2
Xcode: Allow override of CMAKE_CONFIGURATION_TYPES (#8914)
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 1395865..d73c833 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -165,13 +165,16 @@ void cmGlobalXCodeGenerator::EnableLanguage(std::vector<std::string>const&
}
else
{
- 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);
+ 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);
+ }
}
mf->AddDefinition("CMAKE_GENERATOR_CC", "gcc");
mf->AddDefinition("CMAKE_GENERATOR_CXX", "g++");