From: Matthias Maier Date: Sun, 26 Dec 2021 16:44:30 +0000 (-0600) Subject: CMake: use portable "cmake -E remove" in quick_tests X-Git-Tag: v9.3.3~3^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c323ef0cfad0fe0c31cd2bd75370d952a20a799;p=dealii.git CMake: use portable "cmake -E remove" in quick_tests Closes: https://github.com/dealii/dealii/issues/13122 PR: #13129 --- 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}