summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-11-29 22:47:15 (GMT)
committerBrad King <brad.king@kitware.com>2022-11-29 22:47:38 (GMT)
commit4aa3149c67165952306ed457eeaaab52a90285a5 (patch)
treee2f324b45b228b6038329de5cd9aed8700319080
parentc5a945dce8e1a4fb1b1db91c2dae03795c74074b (diff)
downloadCMake-4aa3149c67165952306ed457eeaaab52a90285a5.zip
CMake-4aa3149c67165952306ed457eeaaab52a90285a5.tar.gz
CMake-4aa3149c67165952306ed457eeaaab52a90285a5.tar.bz2
Tests: Simplify RunCMake.file-GET_RUNTIME_DEPENDENCIES case cleaning
-rw-r--r--Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/RunCMakeTest.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/RunCMakeTest.cmake b/Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/RunCMakeTest.cmake
index 07679b7..90b3797 100644
--- a/Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/RunCMakeTest.cmake
+++ b/Tests/RunCMake/file-GET_RUNTIME_DEPENDENCIES/RunCMakeTest.cmake
@@ -4,10 +4,8 @@ include(RunCMake)
# Function to build and install a project.
function(run_install_test case)
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/${case}-build)
- set(RunCMake_TEST_NO_CLEAN 1)
- file(REMOVE_RECURSE "${RunCMake_TEST_BINARY_DIR}")
- file(MAKE_DIRECTORY "${RunCMake_TEST_BINARY_DIR}")
run_cmake(${case})
+ set(RunCMake_TEST_NO_CLEAN 1)
run_cmake_command(${case}-build ${CMAKE_COMMAND} --build . --config Debug)
# Check "all" components.
set(CMAKE_INSTALL_PREFIX ${RunCMake_TEST_BINARY_DIR}/root-all)