diff options
author | Brad King <brad.king@kitware.com> | 2021-10-19 14:45:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-10-19 15:50:06 (GMT) |
commit | 7fcc35c676b46fc30cb67425bfc72c7de040d6bf (patch) | |
tree | 66229f00d8fba55f95d7780da2075aa7976b1fb3 | |
parent | 52ea22ca65d86627e9ab571f2a87d4a952a7d85e (diff) | |
download | CMake-7fcc35c676b46fc30cb67425bfc72c7de040d6bf.zip CMake-7fcc35c676b46fc30cb67425bfc72c7de040d6bf.tar.gz CMake-7fcc35c676b46fc30cb67425bfc72c7de040d6bf.tar.bz2 |
Tests: Clean RunCMake.UnityBuild cases
-rw-r--r-- | Tests/RunCMake/UnityBuild/RunCMakeTest.cmake | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Tests/RunCMake/UnityBuild/RunCMakeTest.cmake b/Tests/RunCMake/UnityBuild/RunCMakeTest.cmake index c00f78b..8019f09 100644 --- a/Tests/RunCMake/UnityBuild/RunCMakeTest.cmake +++ b/Tests/RunCMake/UnityBuild/RunCMakeTest.cmake @@ -2,11 +2,9 @@ include(RunCMake) function(run_build name) set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/${name}-build) - set(RunCMake_TEST_NO_CLEAN 1) run_cmake(${name}) + set(RunCMake_TEST_NO_CLEAN 1) run_cmake_command(${name}-build ${CMAKE_COMMAND} --build . --config Debug) - unset(RunCMake_TEST_BINARY_DIR) - unset(RunCMake_TEST_NO_CLEAN) endfunction() run_cmake(unitybuild_c) @@ -30,12 +28,10 @@ run_build(unitybuild_anon_ns_group_mode) function(run_test name) set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/${name}-build) - set(RunCMake_TEST_NO_CLEAN 1) run_cmake(${name}) + set(RunCMake_TEST_NO_CLEAN 1) run_cmake_command(${name}-build ${CMAKE_COMMAND} --build . --config Debug) run_cmake_command(${name}-test ${CMAKE_CTEST_COMMAND} -C Debug) - unset(RunCMake_TEST_BINARY_DIR) - unset(RunCMake_TEST_NO_CLEAN) endfunction() run_test(unitybuild_runtest) |