summaryrefslogtreecommitdiffstats
path: root/hl/tools/h5watch/CMakeTests.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-07-12 19:18:01 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-07-12 20:43:10 (GMT)
commit00c5a9fc4f9cc7ecc90b43db3c152467e296f811 (patch)
tree9d0c0960a046e6dcb370981c5d0b8108530655f7 /hl/tools/h5watch/CMakeTests.cmake
parent82bf61e397034dab6888109d958766edd6a62868 (diff)
downloadhdf5-00c5a9fc4f9cc7ecc90b43db3c152467e296f811.zip
hdf5-00c5a9fc4f9cc7ecc90b43db3c152467e296f811.tar.gz
hdf5-00c5a9fc4f9cc7ecc90b43db3c152467e296f811.tar.bz2
HDFF-10254 - Copy test files with macro to avoid POST_BUILD failure
Diffstat (limited to 'hl/tools/h5watch/CMakeTests.cmake')
-rw-r--r--hl/tools/h5watch/CMakeTests.cmake11
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})
##############################################################################
##############################################################################