diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2020-06-30 17:44:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-07-03 11:43:18 (GMT) |
commit | 7a969fe21d736b6c6755b5dc7a105f1427242cdd (patch) | |
tree | e5049985a624ff703b52dcff17fad5f60cfbff8c /Source/cmGeneratorExpressionEvaluationFile.cxx | |
parent | 19f7588d3d715fdf3c32669fc756e2c68fbf1da5 (diff) | |
download | CMake-7a969fe21d736b6c6755b5dc7a105f1427242cdd.zip CMake-7a969fe21d736b6c6755b5dc7a105f1427242cdd.tar.gz CMake-7a969fe21d736b6c6755b5dc7a105f1427242cdd.tar.bz2 |
cmMakefile: Refactor API to better handle empty config values
Diffstat (limited to 'Source/cmGeneratorExpressionEvaluationFile.cxx')
-rw-r--r-- | Source/cmGeneratorExpressionEvaluationFile.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/cmGeneratorExpressionEvaluationFile.cxx b/Source/cmGeneratorExpressionEvaluationFile.cxx index 9e8707d..1107adb 100644 --- a/Source/cmGeneratorExpressionEvaluationFile.cxx +++ b/Source/cmGeneratorExpressionEvaluationFile.cxx @@ -157,12 +157,8 @@ void cmGeneratorExpressionEvaluationFile::Generate(cmLocalGenerator* lg) std::map<std::string, std::string> outputFiles; - std::vector<std::string> allConfigs; - lg->GetMakefile()->GetConfigurations(allConfigs); - - if (allConfigs.empty()) { - allConfigs.emplace_back(); - } + std::vector<std::string> allConfigs = + lg->GetMakefile()->GetGeneratorConfigs(cmMakefile::IncludeEmptyConfig); std::vector<std::string> enabledLanguages; cmGlobalGenerator* gg = lg->GetGlobalGenerator(); |