diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-01-19 13:53:46 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-01-19 13:53:46 (GMT) |
commit | 6bae11bb5b9adfce55f173b1fe11fefd1081ec27 (patch) | |
tree | c3e9d6e4c7ec169dc8c61ac71557f5ef1ef8a335 /hl/c++ | |
parent | 82463a6a7ae6779536e1e94d1fbcb89a55c0c729 (diff) | |
download | hdf5-6bae11bb5b9adfce55f173b1fe11fefd1081ec27.zip hdf5-6bae11bb5b9adfce55f173b1fe11fefd1081ec27.tar.gz hdf5-6bae11bb5b9adfce55f173b1fe11fefd1081ec27.tar.bz2 |
Improved CMake options for tests
Diffstat (limited to 'hl/c++')
-rw-r--r-- | hl/c++/examples/CMakeLists.txt | 2 | ||||
-rw-r--r-- | hl/c++/test/CMakeLists.txt | 4 |
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 () |