Skip to content

Commit

Permalink
CMake link line needs to use new HDF5_ENABLE_THREADS (HDFGroup#4685)
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF authored and lrknox committed Aug 21, 2024
1 parent e27be15 commit 51e0b37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -570,11 +570,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)

Expand Down

0 comments on commit 51e0b37

Please sign in to comment.