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:37 (GMT) |
commit | 4e44cbc67330249bd7d04c5a1bc74516e44226a7 (patch) | |
tree | 52df264dac5bc8af9e8e47119fb8a30bfe40ed44 /Source/cmGlobalNinjaGenerator.cxx | |
parent | b3fd1bcfa5278e75ad7a0404bd084ab68f3f5bb4 (diff) | |
parent | 1844be451e2c27129fbdff9aed121c1b6395c1d0 (diff) | |
download | CMake-4e44cbc67330249bd7d04c5a1bc74516e44226a7.zip CMake-4e44cbc67330249bd7d04c5a1bc74516e44226a7.tar.gz CMake-4e44cbc67330249bd7d04c5a1bc74516e44226a7.tar.bz2 |
Merge topic 'ninja-multi-default-config-fix'
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 78ab2a8..ff9c433 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -2658,6 +2658,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 " |