diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-07-12 19:18:01 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-07-12 19:18:01 (GMT) |
commit | 78d1de482ebc91348cfb673ba584db96ce127aeb (patch) | |
tree | ed86b78cbb309f3f8577d2e36fb2860d34500048 /hl/tools | |
parent | 2da8e74cc5ca9c0bdae85189f351fbe9c5f40500 (diff) | |
download | hdf5-78d1de482ebc91348cfb673ba584db96ce127aeb.zip hdf5-78d1de482ebc91348cfb673ba584db96ce127aeb.tar.gz hdf5-78d1de482ebc91348cfb673ba584db96ce127aeb.tar.bz2 |
HDFF-10254 - Copy test files with macro to avoid POST_BUILD failure
Diffstat (limited to 'hl/tools')
-rw-r--r-- | hl/tools/h5watch/CMakeTests.cmake | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/hl/tools/h5watch/CMakeTests.cmake b/hl/tools/h5watch/CMakeTests.cmake index 35e7829..0b7b4d4 100644 --- a/hl/tools/h5watch/CMakeTests.cmake +++ b/hl/tools/h5watch/CMakeTests.cmake @@ -56,18 +56,11 @@ set (H5WATCH_TEST_FILES # make test dir file (MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles") -add_custom_target(h5watch-files ALL COMMENT "Copying files needed by h5watch tests") foreach (h5watch_file ${H5WATCH_TEST_FILES}) - set (dest "${PROJECT_BINARY_DIR}/testfiles/${h5watch_file}") - #message (STATUS " Copying ${h5watch_file}") - add_custom_command ( - TARGET h5watch-files - POST_BUILD - COMMAND ${CMAKE_COMMAND} - ARGS -E copy_if_different ${HDF5_HL_TOOLS_DIR}/testfiles/${h5watch_file} ${dest} - ) + HDFTEST_COPY_FILE("${HDF5_HL_TOOLS_DIR}/testfiles/${h5watch_file}" "${PROJECT_BINARY_DIR}/testfiles/${h5watch_file}" "H5WATCH_files") endforeach () +add_custom_target(H5WATCH_files ALL COMMENT "Copying files needed by H5WATCH tests" DEPENDS ${H5WATCH_files_list}) ############################################################################## ############################################################################## |