Skip to content

Commit

Permalink
CMake: use portable "rm" in quick_tests
Browse files Browse the repository at this point in the history
Closes: #13122
  • Loading branch information
tamiko committed Dec 26, 2021
1 parent c0c7625 commit 96ddcc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/quick_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 rm -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}
Expand Down

0 comments on commit 96ddcc3

Please sign in to comment.