diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-03-14 22:09:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-14 22:09:19 (GMT) |
commit | 066536a56fdfe2eecc7384549dbdfe839bf9160d (patch) | |
tree | ce512e10229426040f336dbccf0e7f7f8439c3d3 /test | |
parent | fd4f26a8c1d9d5fec0a0807ae7007394605b46c7 (diff) | |
download | hdf5-066536a56fdfe2eecc7384549dbdfe839bf9160d.zip hdf5-066536a56fdfe2eecc7384549dbdfe839bf9160d.tar.gz hdf5-066536a56fdfe2eecc7384549dbdfe839bf9160d.tar.bz2 |
Make sure that ONLY_SHARED_LIBS option is correctly set (#2547)
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 4 | ||||
-rw-r--r-- | test/CMakeTests.cmake | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d41b07f..1792e08 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -27,7 +27,7 @@ set (TEST_LIB_HEADERS ${HDF5_TEST_SOURCE_DIR}/swmr_common.h ) -if (NOT ONLY_SHARED_LIBS) +if (BUILD_STATIC_LIBS) add_library (${HDF5_TEST_LIB_TARGET} STATIC ${TEST_LIB_SOURCES} ${TEST_LIB_HEADERS}) target_include_directories (${HDF5_TEST_LIB_TARGET} PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};${HDF5_TEST_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>" @@ -76,7 +76,7 @@ endif () # Add Target to clang-format #----------------------------------------------------------------------------- if (HDF5_ENABLE_FORMATTERS) - if (NOT ONLY_SHARED_LIBS) + if (BUILD_STATIC_LIBS) clang_format (HDF5_TEST_SRC_FORMAT ${HDF5_TEST_LIB_TARGET}) else () clang_format (HDF5_TEST_SRC_FORMAT ${HDF5_TEST_LIBSH_TARGET}) diff --git a/test/CMakeTests.cmake b/test/CMakeTests.cmake index 6bd82e5..9e3533e 100644 --- a/test/CMakeTests.cmake +++ b/test/CMakeTests.cmake @@ -983,7 +983,7 @@ endif () ############################################################################## ############################################################################## -if (HDF5_BUILD_GENERATORS AND NOT ONLY_SHARED_LIBS) +if (HDF5_BUILD_GENERATORS AND BUILD_STATIC_LIBS) macro (ADD_H5_GENERATOR genfile) add_executable (${genfile} ${HDF5_TEST_SOURCE_DIR}/${genfile}.c) target_include_directories (${genfile} PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>") |