summaryrefslogtreecommitdiffstats
path: root/hl/tools/h5watch/CMakeLists.txt
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-01-19 13:53:46 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-01-19 13:53:46 (GMT)
commit6bae11bb5b9adfce55f173b1fe11fefd1081ec27 (patch)
treec3e9d6e4c7ec169dc8c61ac71557f5ef1ef8a335 /hl/tools/h5watch/CMakeLists.txt
parent82463a6a7ae6779536e1e94d1fbcb89a55c0c729 (diff)
downloadhdf5-6bae11bb5b9adfce55f173b1fe11fefd1081ec27.zip
hdf5-6bae11bb5b9adfce55f173b1fe11fefd1081ec27.tar.gz
hdf5-6bae11bb5b9adfce55f173b1fe11fefd1081ec27.tar.bz2
Improved CMake options for tests
Diffstat (limited to 'hl/tools/h5watch/CMakeLists.txt')
-rw-r--r--hl/tools/h5watch/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/hl/tools/h5watch/CMakeLists.txt b/hl/tools/h5watch/CMakeLists.txt
index b3d65f7..edb78c0 100644
--- a/hl/tools/h5watch/CMakeLists.txt
+++ b/hl/tools/h5watch/CMakeLists.txt
@@ -26,7 +26,7 @@ if (BUILD_SHARED_LIBS)
set (H5_DEP_EXECUTABLES ${H5_DEP_EXECUTABLES} h5watch-shared)
endif ()
-if (BUILD_TESTING)
+if (BUILD_TESTING AND HDF5_TEST_SWMR AND HDF5_TEST_SERIAL)
#-- Add swmr_check_compat_vfd program
set (hl_swmr_check_compat_vfd_SOURCES
${HDF5_HL_TOOLS_H5WATCH_SOURCE_DIR}/swmr_check_compat_vfd.c
@@ -68,7 +68,9 @@ if (BUILD_TESTING)
endif ()
set_target_properties (h5watchgentest PROPERTIES FOLDER generator/tools/hl)
- include (CMakeTests.cmake)
+ if (HDF5_TEST_TOOLS)
+ include (CMakeTests.cmake)
+ endif ()
endif ()
#-----------------------------------------------------------------------------