summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-12-09 13:09:24 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-12-09 13:09:38 (GMT)
commit04727ba21c5397ea94d492b39c4c8f3fc43693c7 (patch)
tree014c519a8e4689958d66ec709650420f0695e4e4
parent41692ebb0a4c01f3f5a50137dbe3b2305d22b1ae (diff)
parent101ac06b2874b451e167f19d55fc0a8b684d7b44 (diff)
downloadCMake-04727ba21c5397ea94d492b39c4c8f3fc43693c7.zip
CMake-04727ba21c5397ea94d492b39c4c8f3fc43693c7.tar.gz
CMake-04727ba21c5397ea94d492b39c4c8f3fc43693c7.tar.bz2
Merge topic 'ninja-dev'
101ac06b28 Tests: Update for changes to upstream ninja development version Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !9053
-rw-r--r--Tests/RunCMake/Ninja/RunCMakeTest.cmake9
-rw-r--r--Tests/RunCMake/try_compile/ISPCDuplicateTargetNinja-stderr.txt6
2 files changed, 11 insertions, 4 deletions
diff --git a/Tests/RunCMake/Ninja/RunCMakeTest.cmake b/Tests/RunCMake/Ninja/RunCMakeTest.cmake
index 9777d17..8d9aa6f 100644
--- a/Tests/RunCMake/Ninja/RunCMakeTest.cmake
+++ b/Tests/RunCMake/Ninja/RunCMakeTest.cmake
@@ -349,6 +349,9 @@ if("${ninja_version}" VERSION_LESS 1.6)
message(WARNING "Ninja is too old; skipping rest of test.")
return()
endif()
+if("${ninja_version}" VERSION_LESS 1.12)
+ set(maybe_w_dupbuild_err -w dupbuild=err)
+endif()
set(ninja_output_path_prefixes "sub")
if(NOT CMAKE_C_COMPILER_ID STREQUAL "OrangeC")
@@ -366,14 +369,14 @@ endforeach(ninja_output_path_prefix)
function (run_PreventTargetAliasesDupBuildRule)
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/PreventTargetAliasesDupBuildRule-build)
run_cmake(PreventTargetAliasesDupBuildRule)
- run_ninja("${RunCMake_TEST_BINARY_DIR}" -w dupbuild=err)
+ run_ninja("${RunCMake_TEST_BINARY_DIR}" ${maybe_w_dupbuild_err})
endfunction ()
run_PreventTargetAliasesDupBuildRule()
function (run_PreventConfigureFileDupBuildRule)
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/PreventConfigureFileDupBuildRule-build)
run_cmake(PreventConfigureFileDupBuildRule)
- run_ninja("${RunCMake_TEST_BINARY_DIR}" -w dupbuild=err)
+ run_ninja("${RunCMake_TEST_BINARY_DIR}" ${maybe_w_dupbuild_err})
endfunction()
run_PreventConfigureFileDupBuildRule()
@@ -382,7 +385,7 @@ function (run_ChangeBuildType)
set(RunCMake_TEST_OPTIONS "-DCMAKE_BUILD_TYPE:STRING=Debug")
run_cmake(ChangeBuildType)
unset(RunCMake_TEST_OPTIONS)
- run_ninja("${RunCMake_TEST_BINARY_DIR}" -w dupbuild=err)
+ run_ninja("${RunCMake_TEST_BINARY_DIR}" ${maybe_w_dupbuild_err})
endfunction()
run_ChangeBuildType()
diff --git a/Tests/RunCMake/try_compile/ISPCDuplicateTargetNinja-stderr.txt b/Tests/RunCMake/try_compile/ISPCDuplicateTargetNinja-stderr.txt
index 99248bf..155aff9 100644
--- a/Tests/RunCMake/try_compile/ISPCDuplicateTargetNinja-stderr.txt
+++ b/Tests/RunCMake/try_compile/ISPCDuplicateTargetNinja-stderr.txt
@@ -1 +1,5 @@
-.*ninja: error: .* multiple rules generate.*src.ispc_avx512skx.o.*
+ninja: error:([^
+]+multiple rules generate[^
+]+src\.ispc_avx512skx\.o|[^
+]+src\.ispc_avx512skx\.o[^
+]+is defined as an output multiple times)