diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-04-23 13:18:10 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-04-23 16:46:58 (GMT) |
commit | b45976fe104902ed7f0495e0e4c822684a4455e7 (patch) | |
tree | 5fd9cbea65dcfc5e46246f54043c8d98559e3c53 /Tests/RunCMake/Ninja/RunCMakeTest.cmake | |
parent | 8c00f5ef0a29758c56fa46a11e150b0e0f5c364e (diff) | |
download | CMake-b45976fe104902ed7f0495e0e4c822684a4455e7.zip CMake-b45976fe104902ed7f0495e0e4c822684a4455e7.tar.gz CMake-b45976fe104902ed7f0495e0e4c822684a4455e7.tar.bz2 |
Ninja: Remove config suffix from order-only target
Fixes: #20621
Diffstat (limited to 'Tests/RunCMake/Ninja/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/Ninja/RunCMakeTest.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/Ninja/RunCMakeTest.cmake b/Tests/RunCMake/Ninja/RunCMakeTest.cmake index a00d830..0eada08 100644 --- a/Tests/RunCMake/Ninja/RunCMakeTest.cmake +++ b/Tests/RunCMake/Ninja/RunCMakeTest.cmake @@ -307,3 +307,12 @@ function (run_PreventConfigureFileDupBuildRule) run_ninja("${RunCMake_TEST_BINARY_DIR}" -w dupbuild=err) endfunction() run_PreventConfigureFileDupBuildRule() + +function (run_ChangeBuildType) + set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/ChangeBuildType-build) + 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) +endfunction() +run_ChangeBuildType() |