Skip to content

Commit

Permalink
Optionally Use Static Linking to HDF5 (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterBelanger committed Sep 12, 2023
1 parent c987a51 commit d5c756b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMake/HighFiveTargetDeps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if(NOT TARGET libdeps)
# HDF5
if(NOT DEFINED HDF5_C_LIBRARIES)
set(HDF5_PREFER_PARALLEL ${HIGHFIVE_PARALLEL_HDF5})
set(HDF5_USE_STATIC_LIBRARIES ${HIGHFIVE_STATIC_HDF5})
find_package(HDF5 REQUIRED)
endif()

Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ option(HIGHFIVE_USE_OPENCV "Enable OpenCV testing" ${USE_OPENCV})
option(HIGHFIVE_USE_XTENSOR "Enable xtensor testing" ${USE_XTENSOR})
option(HIGHFIVE_EXAMPLES "Compile examples" ON)
option(HIGHFIVE_PARALLEL_HDF5 "Enable Parallel HDF5 support" OFF)
option(HIGHFIVE_STATIC_HDF5 "Staticly link to HDF5 library" OFF)
option(HIGHFIVE_BUILD_DOCS "Enable documentation building" ON)
option(HIGHFIVE_VERBOSE "Set logging level to verbose." OFF)
option(HIGHFIVE_GLIBCXX_ASSERTIONS "Enable bounds check for STL." OFF)
Expand Down

0 comments on commit d5c756b

Please sign in to comment.