|
|
@@ -3187,8 +3187,12 @@ void cmMakefile::InitCMAKE_CONFIGURATION_TYPES(std::string const& genDefault)
|
|
|
if (this->GetDefinition("CMAKE_CONFIGURATION_TYPES")) {
|
|
|
return;
|
|
|
}
|
|
|
+ std::string initConfigs;
|
|
|
+ if (!cmSystemTools::GetEnv("CMAKE_CONFIGURATION_TYPES", initConfigs)) {
|
|
|
+ initConfigs = genDefault;
|
|
|
+ }
|
|
|
this->AddCacheDefinition(
|
|
|
- "CMAKE_CONFIGURATION_TYPES", genDefault,
|
|
|
+ "CMAKE_CONFIGURATION_TYPES", initConfigs,
|
|
|
"Semicolon separated list of supported configuration types, "
|
|
|
"only supports Debug, Release, MinSizeRel, and RelWithDebInfo, "
|
|
|
"anything else will be ignored.",
|