diff options
author | Brad King <brad.king@kitware.com> | 2020-02-07 14:26:29 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-02-07 14:26:36 (GMT) |
commit | 135378fd187d5d246b200197dab917c81e6c0351 (patch) | |
tree | 46a5d2cf070491b013847896bca515dc6a3ec70d /Source/cmGlobalNinjaGenerator.cxx | |
parent | 92faf1aeb4f07a02783ef73b54f0920a02a47d15 (diff) | |
parent | 1844be451e2c27129fbdff9aed121c1b6395c1d0 (diff) | |
download | CMake-135378fd187d5d246b200197dab917c81e6c0351.zip CMake-135378fd187d5d246b200197dab917c81e6c0351.tar.gz CMake-135378fd187d5d246b200197dab917c81e6c0351.tar.bz2 |
Merge topic 'ninja-multi-default-config-fix' into release-3.17
1844be451e Ninja Multi-Config: Fix issue with CMAKE_NMC_DEFAULT_BUILD_FILE_CONFIG
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4331
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index b3d536f..55efff2 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -2657,6 +2657,7 @@ bool cmGlobalNinjaMultiGenerator::ReadCacheEntriesForBuild( defaultConfigsString = this->DefaultFileConfig; } if (!defaultConfigsString.empty() && + defaultConfigsString != this->DefaultFileConfig && (this->DefaultFileConfig.empty() || this->CrossConfigs.empty())) { std::ostringstream msg; msg << "CMAKE_NMC_DEFAULT_CONFIGS cannot be used without " |