diff options
author | Brad King <brad.king@kitware.com> | 2023-02-24 20:23:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-02-24 20:23:10 (GMT) |
commit | 9694504adcdc44492a2e088343cd5be1fd28d270 (patch) | |
tree | 2678d6300e17af292b65eea88bf334d7e6735ab6 /Tests | |
parent | 3cd34eb279df8419dd849360cc3b2f1133d3f281 (diff) | |
download | CMake-9694504adcdc44492a2e088343cd5be1fd28d270.zip CMake-9694504adcdc44492a2e088343cd5be1fd28d270.tar.gz CMake-9694504adcdc44492a2e088343cd5be1fd28d270.tar.bz2 |
Tests: Simplify RunCMake.TargetArtifacts spec
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/TargetArtifacts/RunCMakeTest.cmake | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Tests/RunCMake/TargetArtifacts/RunCMakeTest.cmake b/Tests/RunCMake/TargetArtifacts/RunCMakeTest.cmake index 54510b0..2b5c4b8 100644 --- a/Tests/RunCMake/TargetArtifacts/RunCMakeTest.cmake +++ b/Tests/RunCMake/TargetArtifacts/RunCMakeTest.cmake @@ -2,18 +2,14 @@ include(RunCMake) function(run_cmake_and_verify_after_build case) set(RunCMake_TEST_BINARY_DIR "${RunCMake_BINARY_DIR}/${case}-build") - file(REMOVE_RECURSE "${RunCMake_TEST_BINARY_DIR}") - file(MAKE_DIRECTORY "${RunCMake_TEST_BINARY_DIR}") - set(RunCMake_TEST_NO_CLEAN 1) if(RunCMake_GENERATOR_IS_MULTI_CONFIG) set(RunCMake_TEST_OPTIONS -DCMAKE_CONFIGURATION_TYPES=Debug) else() set(RunCMake_TEST_OPTIONS -DCMAKE_BUILD_TYPE=Debug) endif() run_cmake(${case}) + set(RunCMake_TEST_NO_CLEAN 1) run_cmake_command("${case}-build" ${CMAKE_COMMAND} --build .) - unset(RunCMake_TEST_NO_CLEAN) - unset(RunCMake_TEST_BINARY_DIR) endfunction() run_cmake_and_verify_after_build(OutputDirs) |