diff options
author | Brad King <brad.king@kitware.com> | 2019-09-03 13:37:00 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-09-03 13:42:15 (GMT) |
commit | 1f7bd0032253296413770567a90a0a88b6cccb34 (patch) | |
tree | 4ad8653e9614c721ed3ce37a09b30be2d2e05159 /Source/cmMakefile.cxx | |
parent | c4f2f011084a5e64e6f3745071ea56a286758682 (diff) | |
parent | 10507c6dc0918777d43b3f961bd18162866f0bbb (diff) | |
download | CMake-1f7bd0032253296413770567a90a0a88b6cccb34.zip CMake-1f7bd0032253296413770567a90a0a88b6cccb34.tar.gz CMake-1f7bd0032253296413770567a90a0a88b6cccb34.tar.bz2 |
Merge topic 'add-non-empty-configurations-getter'
10507c6dc0 cmMakefile: Add configurations getter with empty configuration default
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3759
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 5f09ce3..4b26ec6 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -3057,6 +3057,16 @@ std::string cmMakefile::GetConfigurations(std::vector<std::string>& configs, return buildType; } +std::vector<std::string> cmMakefile::GetGeneratorConfigs() const +{ + std::vector<std::string> configs; + GetConfigurations(configs); + if (configs.empty()) { + configs.emplace_back(); + } + return configs; +} + bool cmMakefile::IsFunctionBlocked(const cmListFileFunction& lff, cmExecutionStatus& status) { |