Skip to content

Fix CMake config file install paths to follow platform conventions#6174

Draft
lrknox wants to merge 3 commits into
HDFGroup:developfrom
lrknox:fix-standard-.cmake-install
Draft

Fix CMake config file install paths to follow platform conventions#6174
lrknox wants to merge 3 commits into
HDFGroup:developfrom
lrknox:fix-standard-.cmake-install

Conversation

@lrknox

@lrknox lrknox commented Jan 26, 2026

Copy link
Copy Markdown
Collaborator

Update HDF_DIR_PATHS macro to install hdf5-config.cmake and related files to platform-appropriate locations:

  • Windows (not Cygwin): /cmake/
  • Linux/Unix/Cygwin: /<lib_dir>/cmake/hdf5/
  • macOS Frameworks: <framework_prefix>/hdf5.framework/Resources/CMake/

Update HDF_DIR_PATHS macro to install hdf5-config.cmake and related
files to platform-appropriate locations:
- Windows (not Cygwin): <prefix>/cmake/
- Linux/Unix/Cygwin: <prefix>/<lib_dir>/cmake/hdf5/
- macOS Frameworks: <framework_prefix>/hdf5.framework/Resources/CMake/

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Comment thread config/HDFMacros.cmake Outdated
# - Frameworks: <framework>/Resources/CMake/
# - Windows (not Cygwin): cmake/
# - Linux/Unix/Cygwin: ${CMAKE_INSTALL_LIBDIR}/cmake/<package_name>/
if (${package_prefix}_BUILD_FRAMEWORKS)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe only the Unixy changes need to be put in this particular spot. It seems unlikely that HDF5_USE_GNU_DIRS is going to be ON on Windows or Apple. There may be a use case for Apple, but that would seem to go against the frameworks approach anyway.

Add similar change to HDF5Examples/config/HDFMacros.cmake.
@lrknox lrknox added this to the HDF5 2.2.0 milestone Mar 17, 2026
@lrknox lrknox moved this from To be triaged to In progress in HDF5 - TRIAGE & TRACK Mar 17, 2026
@github-actions github-actions Bot added the draft-stale Draft PR with no activity past the draft staleness window label Jun 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This draft has had no activity for 60 days and has been marked draft-stale.

  • Still working on this -- check this box to keep the draft open

Checking the box is the only thing that resets this -- a commit or other automated update alone won't. Otherwise it will be flagged for maintainer review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

draft-stale Draft PR with no activity past the draft staleness window

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

2 participants