Skip to content

CMake HDF5 Static: Work-Around for ZLIB#1894

Merged
ax3l merged 1 commit into
openPMD:devfrom
ax3l:fix-hdf5-static-zlib-workaround
Jun 24, 2026
Merged

CMake HDF5 Static: Work-Around for ZLIB#1894
ax3l merged 1 commit into
openPMD:devfrom
ax3l:fix-hdf5-static-zlib-workaround

Conversation

@ax3l

@ax3l ax3l commented Jun 23, 2026

Copy link
Copy Markdown
Member

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.

Needed for #1892

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.
@ax3l ax3l added this to the 0.17.2 milestone Jun 23, 2026
ax3l added a commit to ax3l/openPMD-api that referenced this pull request Jun 23, 2026


Replace the local patch files with the exact diffs from the openPMD-api dev
PRs (openPMD#1893 FindPython cross-compile, openPMD#1894 HDF5 ZLIB::ZLIB workaround), so the
wheel CI builds and runtime-tests precisely the code that will land in dev.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ax3l ax3l merged commit 41db786 into openPMD:dev Jun 24, 2026
31 checks passed
@ax3l ax3l deleted the fix-hdf5-static-zlib-workaround branch June 24, 2026 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant