summaryrefslogtreecommitdiffstats
path: root/Source/cmJsonObjects.cxx
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2020-06-30 17:44:37 (GMT)
committerBrad King <brad.king@kitware.com>2020-07-03 11:43:18 (GMT)
commit7a969fe21d736b6c6755b5dc7a105f1427242cdd (patch)
treee5049985a624ff703b52dcff17fad5f60cfbff8c /Source/cmJsonObjects.cxx
parent19f7588d3d715fdf3c32669fc756e2c68fbf1da5 (diff)
downloadCMake-7a969fe21d736b6c6755b5dc7a105f1427242cdd.zip
CMake-7a969fe21d736b6c6755b5dc7a105f1427242cdd.tar.gz
CMake-7a969fe21d736b6c6755b5dc7a105f1427242cdd.tar.bz2
cmMakefile: Refactor API to better handle empty config values
Diffstat (limited to 'Source/cmJsonObjects.cxx')
-rw-r--r--Source/cmJsonObjects.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmJsonObjects.cxx b/Source/cmJsonObjects.cxx
index 9f17f15..3a2e3be 100644
--- a/Source/cmJsonObjects.cxx
+++ b/Source/cmJsonObjects.cxx
@@ -51,11 +51,7 @@ std::vector<std::string> getConfigurations(const cmake* cm)
return configurations;
}
- makefiles[0]->GetConfigurations(configurations);
- if (configurations.empty()) {
- configurations.emplace_back();
- }
- return configurations;
+ return makefiles[0]->GetGeneratorConfigs(cmMakefile::IncludeEmptyConfig);
}
bool hasString(const Json::Value& v, const std::string& s)