mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
CMake link line needs to use new HDF5_ENABLE_THREADS (#4685)
This commit is contained in:
parent
9dad0f9abc
commit
0f620e91be
@ -574,11 +574,11 @@ if (NOT BUILD_SHARED_LIBS)
|
||||
TARGET_C_PROPERTIES (ttsafe STATIC)
|
||||
target_link_libraries (ttsafe PRIVATE ${HDF5_TEST_LIB_TARGET})
|
||||
if (NOT WIN32)
|
||||
target_link_libraries (ttsafe PRIVATE "$<$<BOOL:${HDF5_ENABLE_THREADSAFE}>:Threads::Threads>")
|
||||
target_link_libraries (ttsafe PRIVATE "$<$<BOOL:${HDF5_ENABLE_THREADS}>:Threads::Threads>")
|
||||
endif ()
|
||||
else ()
|
||||
TARGET_C_PROPERTIES (ttsafe SHARED)
|
||||
target_link_libraries (ttsafe PRIVATE ${HDF5_TEST_LIBSH_TARGET} "$<$<BOOL:${HDF5_ENABLE_THREADSAFE}>:Threads::Threads>")
|
||||
target_link_libraries (ttsafe PRIVATE ${HDF5_TEST_LIBSH_TARGET} "$<$<BOOL:${HDF5_ENABLE_THREADS}>:Threads::Threads>")
|
||||
endif ()
|
||||
set_target_properties (ttsafe PROPERTIES FOLDER test)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user