Skip to content

Commit

Permalink
windows: use Threads along with HDF5 in mdal provider on windows (for…
Browse files Browse the repository at this point in the history
… HDF5_ENABLE_THREADSAFE=ON)
  • Loading branch information
jef-n committed Oct 22, 2020
1 parent c688148 commit 12a44c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/providers/mdal/CMakeLists.txt
Expand Up @@ -11,6 +11,10 @@ IF (WITH_GUI)
ENDIF ()

SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/external/mdal/cmake ${CMAKE_MODULE_PATH})
IF(MSVC)
# HDF5 with enabled thread safety (HDF5_ENABLE_THREADSAFE=ON) on Windows needs Threads::Threads
FIND_PACKAGE(Threads)
ENDIF(MSVC)
FIND_PACKAGE(HDF5)
FIND_PACKAGE(NetCDF)
FIND_PACKAGE(LibXml2)
Expand Down

0 comments on commit 12a44c7

Please sign in to comment.