Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,14 @@ endif()
# The following configuration files were considered but not accepted:
# ../share/cmake/hdf5/hdf5-config.cmake, version: 1.10.7
# - thus, we do our own HDF5_VERSION check...
# external library: ZLIB (work-around for an upstream HDF5 packaging issue)
# Static build of HDF5 forget to do `find_dependency(ZLIB) in their
# CMake config, but expose them in INTERFACE_LINK_LIBRARIES. Thus,
# find_package(HDF5) fails. ZLIB is optional but usually used by HDF5.
if(HDF5_USE_STATIC_LIBRARIES AND NOT TARGET ZLIB::ZLIB)
find_package(ZLIB QUIET)
endif()

if(openPMD_USE_HDF5 STREQUAL AUTO)
set(HDF5_PREFER_PARALLEL ${openPMD_HAVE_MPI})
find_package(HDF5 COMPONENTS C)
Expand Down
Loading