summaryrefslogtreecommitdiffstats
path: root/test/CMakeLists.txt
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2019-02-21 22:39:37 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2019-02-21 22:39:37 (GMT)
commitbcf5c400c06bf06820b25c37eceaa97245f15f1f (patch)
tree38c116e724cc4ffb97a4a5d4f8eea4b657466fdd /test/CMakeLists.txt
parentb901552b1ca315db8b27ea090011f2f557491d46 (diff)
downloadhdf5-bcf5c400c06bf06820b25c37eceaa97245f15f1f.zip
hdf5-bcf5c400c06bf06820b25c37eceaa97245f15f1f.tar.gz
hdf5-bcf5c400c06bf06820b25c37eceaa97245f15f1f.tar.bz2
Fix CMake H5_HAVE_THREADSAFE to set value in H5pubconf.h
Add REQUIRED to find_package(Threads) Link against thread library if static and not WIN32 platform
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r--test/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index c442e9b..276cf09 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -45,7 +45,7 @@ if (BUILD_SHARED_LIBS)
INTERFACE "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
)
target_compile_definitions(${HDF5_TEST_LIBSH_TARGET}
- PUBLIC "H5_BUILT_AS_DYNAMIC_LIB" $<$<BOOL:${HDF5_ENABLE_THREADSAFE}>:H5_HAVE_THREADSAFE>
+ PUBLIC "H5_BUILT_AS_DYNAMIC_LIB"
)
TARGET_C_PROPERTIES (${HDF5_TEST_LIBSH_TARGET} SHARED)
target_link_libraries (${HDF5_TEST_LIBSH_TARGET}