Xcode: Allow override of CMAKE_CONFIGURATION_TYPES (#8914)
This commit is contained in:
parent
6744616fb2
commit
e6221ed2c4
|
@ -165,13 +165,16 @@ void cmGlobalXCodeGenerator::EnableLanguage(std::vector<std::string>const&
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mf->AddCacheDefinition(
|
if(!mf->GetDefinition("CMAKE_CONFIGURATION_TYPES"))
|
||||||
"CMAKE_CONFIGURATION_TYPES",
|
{
|
||||||
"Debug;Release;MinSizeRel;RelWithDebInfo",
|
mf->AddCacheDefinition(
|
||||||
"Semicolon separated list of supported configuration types, "
|
"CMAKE_CONFIGURATION_TYPES",
|
||||||
"only supports Debug, Release, MinSizeRel, and RelWithDebInfo, "
|
"Debug;Release;MinSizeRel;RelWithDebInfo",
|
||||||
"anything else will be ignored.",
|
"Semicolon separated list of supported configuration types, "
|
||||||
cmCacheManager::STRING);
|
"only supports Debug, Release, MinSizeRel, and RelWithDebInfo, "
|
||||||
|
"anything else will be ignored.",
|
||||||
|
cmCacheManager::STRING);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
mf->AddDefinition("CMAKE_GENERATOR_CC", "gcc");
|
mf->AddDefinition("CMAKE_GENERATOR_CC", "gcc");
|
||||||
mf->AddDefinition("CMAKE_GENERATOR_CXX", "g++");
|
mf->AddDefinition("CMAKE_GENERATOR_CXX", "g++");
|
||||||
|
|
Loading…
Reference in New Issue