Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop cmake install dir #1041

Merged
merged 3 commits into from
Sep 28, 2021
Merged

Develop cmake install dir #1041

merged 3 commits into from
Sep 28, 2021

Conversation

byrnHDF
Copy link
Contributor

@byrnHDF byrnHDF commented Sep 27, 2021

Corrected path searched by CMake find_package command

- Corrected path searched by CMake find_package command

The install path for cmake find_package files had been changed to use
"share/cmake"
Copy link

@ax3l ax3l Dec 21, 2021

Choose a reason for hiding this comment

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

@byrnHDF this causes a regression on at least Unix, since CMake config files are not in a supported path anymore.

The supported directory names are:
https://cmake.org/cmake/help/latest/command/find_package.html#config-mode-search-procedure

Copy link

Choose a reason for hiding this comment

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

For your tests, avoid setting HDF5_DIR to the CMake sub-path. Instead, just hint CMAKE_PREFIX_PATH to the root/prefix of the whole HDF5 installation. That's all that should be needed to hint a HDF5 install if the supported directory naming scheme is used :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants