mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 05:50:42 +00:00
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
This commit is contained in:
commit
4e44cbc673
@ -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 "
|
||||
|
@ -0,0 +1 @@
|
||||
# Intentionally empty
|
@ -154,6 +154,10 @@ set(RunCMake_TEST_OPTIONS "-DCMAKE_NMC_DEFAULT_BUILD_FILE_CONFIG=Release;-DCMAKE
|
||||
run_cmake(InvalidDefaultConfigsNoCross)
|
||||
unset(RunCMake_TEST_OPTIONS)
|
||||
|
||||
set(RunCMake_TEST_OPTIONS "-DCMAKE_NMC_DEFAULT_BUILD_FILE_CONFIG=Release")
|
||||
run_cmake(DefaultBuildFileConfig)
|
||||
unset(RunCMake_TEST_OPTIONS)
|
||||
|
||||
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/SimpleNoCross-build)
|
||||
run_cmake_configure(SimpleNoCross)
|
||||
include(${RunCMake_TEST_BINARY_DIR}/target_files.cmake)
|
||||
|
Loading…
Reference in New Issue
Block a user