]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: use portable "cmake -E remove" in quick_tests 13234/head
authorMatthias Maier <tamiko@43-1.org>
Sun, 26 Dec 2021 16:44:30 +0000 (10:44 -0600)
committerMarc Fehling <mafehling.git@gmail.com>
Thu, 13 Jan 2022 11:49:59 +0000 (12:49 +0100)
Closes: https://github.com/dealii/dealii/issues/13122
PR: #13129

tests/quick_tests/CMakeLists.txt

index 0a96ff96ed6d2830dccf0789bd7150cea0bcbfb2..18b068f3cd6840376e5452df20a1347a45dd26c4 100644 (file)
@@ -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}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.