summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-06-21 13:05:43 (GMT)
committerBrad King <brad.king@kitware.com>2024-06-21 14:51:21 (GMT)
commite2c6a54b076ad6050b38569a494bc1d82f0376e9 (patch)
tree955b591e8c2ae88336151e509d1f57e7cda1cf28
parent8019272afd57460b71b20b776d93636791c97239 (diff)
downloadCMake-e2c6a54b076ad6050b38569a494bc1d82f0376e9.zip
CMake-e2c6a54b076ad6050b38569a494bc1d82f0376e9.tar.gz
CMake-e2c6a54b076ad6050b38569a494bc1d82f0376e9.tar.bz2
cmGlobalNinjaGenerator: De-duplicate CMAKE_CONFIGURATION_TYPES lookup
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 4e6f164..73bfb85 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -3226,11 +3226,9 @@ void cmGlobalNinjaMultiGenerator::GetQtAutoGenConfigs(
bool cmGlobalNinjaMultiGenerator::InspectConfigTypeVariables()
{
- cmList configsList{ this->Makefiles.front()->GetDefinition(
- "CMAKE_CONFIGURATION_TYPES") };
- if (configsList.empty()) {
- configsList.emplace_back();
- }
+ std::vector<std::string> configsList =
+ this->Makefiles.front()->GetGeneratorConfigs(
+ cmMakefile::IncludeEmptyConfig);
std::set<std::string> configs(configsList.cbegin(), configsList.cend());
this->DefaultFileConfig =