Skip to content

Commit

Permalink
Merge pull request #13129 from tamiko/fix_quick_tests
Browse files Browse the repository at this point in the history
CMake: use portable "rm" in quick_tests
  • Loading branch information
marcfehling committed Dec 27, 2021
2 parents 02ddae8 + 63db622 commit 83a1a0a
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 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}
Expand Down

0 comments on commit 83a1a0a

Please sign in to comment.