From 0c323ef0cfad0fe0c31cd2bd75370d952a20a799 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sun, 26 Dec 2021 10:44:30 -0600 Subject: [PATCH] CMake: use portable "cmake -E remove" in quick_tests Closes: https://github.com/dealii/dealii/issues/13122 PR: #13129 --- tests/quick_tests/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/quick_tests/CMakeLists.txt b/tests/quick_tests/CMakeLists.txt index 0a96ff96ed..18b068f3cd 100644 --- a/tests/quick_tests/CMakeLists.txt +++ b/tests/quick_tests/CMakeLists.txt @@ -66,11 +66,11 @@ MACRO(make_quicktest test_basename build_name mpi_run) # this is a hack to make sure the -OK file is deleted # even if compilation fails. - ADD_CUSTOM_TARGET(kill-${_target}-OK - COMMAND rm -f ${_target}-OK + ADD_CUSTOM_TARGET(reset-${_target}-OK + COMMAND ${CMAKE_COMMAND} -E remove -f ${_target}-OK WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) - ADD_DEPENDENCIES(${_target} kill-${_target}-OK) + ADD_DEPENDENCIES(${_target} reset-${_target}-OK) ADD_TEST(NAME ${_target} COMMAND ${CMAKE_COMMAND} -DTRGT=${_target}.run -DTEST=${_target} -- 2.39.5