Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit d5c756b

Browse files
Optionally Use Static Linking to HDF5 (#823)
1 parent c987a51 commit d5c756b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CMake/HighFiveTargetDeps.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ if(NOT TARGET libdeps)
2626
# HDF5
2727
if(NOT DEFINED HDF5_C_LIBRARIES)
2828
set(HDF5_PREFER_PARALLEL ${HIGHFIVE_PARALLEL_HDF5})
29+
set(HDF5_USE_STATIC_LIBRARIES ${HIGHFIVE_STATIC_HDF5})
2930
find_package(HDF5 REQUIRED)
3031
endif()
3132

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ option(HIGHFIVE_USE_OPENCV "Enable OpenCV testing" ${USE_OPENCV})
3232
option(HIGHFIVE_USE_XTENSOR "Enable xtensor testing" ${USE_XTENSOR})
3333
option(HIGHFIVE_EXAMPLES "Compile examples" ON)
3434
option(HIGHFIVE_PARALLEL_HDF5 "Enable Parallel HDF5 support" OFF)
35+
option(HIGHFIVE_STATIC_HDF5 "Staticly link to HDF5 library" OFF)
3536
option(HIGHFIVE_BUILD_DOCS "Enable documentation building" ON)
3637
option(HIGHFIVE_VERBOSE "Set logging level to verbose." OFF)
3738
option(HIGHFIVE_GLIBCXX_ASSERTIONS "Enable bounds check for STL." OFF)

0 commit comments

Comments
 (0)