summaryrefslogtreecommitdiffstats
path: root/hl/c++
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-01-20 19:52:41 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-01-20 19:52:41 (GMT)
commit80161447bb08638ef4264208600ba1e0b0fcb57a (patch)
treee0f8f65a67d5cfa2310c4a664948f3b4e0d32a24 /hl/c++
parent77ac7cb908055dd6f5a015207a126c73536685d5 (diff)
downloadhdf5-80161447bb08638ef4264208600ba1e0b0fcb57a.zip
hdf5-80161447bb08638ef4264208600ba1e0b0fcb57a.tar.gz
hdf5-80161447bb08638ef4264208600ba1e0b0fcb57a.tar.bz2
Merfge changes to CMake test options and add sanitizers
Diffstat (limited to 'hl/c++')
-rw-r--r--hl/c++/examples/CMakeLists.txt2
-rw-r--r--hl/c++/test/CMakeLists.txt4
2 files changed, 4 insertions, 2 deletions
diff --git a/hl/c++/examples/CMakeLists.txt b/hl/c++/examples/CMakeLists.txt
index 50e08e8..4bd4807 100644
--- a/hl/c++/examples/CMakeLists.txt
+++ b/hl/c++/examples/CMakeLists.txt
@@ -23,6 +23,6 @@ else ()
endif ()
set_target_properties (ptExampleFL PROPERTIES FOLDER examples/hl/cpp)
-if (BUILD_TESTING)
+if (BUILD_TESTING AND HDF5_TEST_CPP AND HDF5_TEST_EXAMPLES AND HDF5_TEST_SERIAL)
include (CMakeTests.cmake)
endif ()
diff --git a/hl/c++/test/CMakeLists.txt b/hl/c++/test/CMakeLists.txt
index cfb24a8..429e5c7 100644
--- a/hl/c++/test/CMakeLists.txt
+++ b/hl/c++/test/CMakeLists.txt
@@ -24,4 +24,6 @@ else ()
endif ()
set_target_properties (hl_ptableTest PROPERTIES FOLDER test/hl/cpp)
-include (CMakeTests.cmake)
+if (HDF5_TEST_CPP AND HDF5_TEST_SERIAL)
+ include (CMakeTests.cmake)
+endif ()