-
-
Notifications
You must be signed in to change notification settings - Fork 254
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
CMake variable HDF5_INSTALL_CMAKE_DIR should be lib/cmake on Windows #75
Comments
Unfortunately this was implemented many years ago and used in many projects. We will need to come up with a solution that does not adversely affect all users. |
What kind of problem do you foresee? If |
I should explain a little more, I am sure this is the right way to move, we just need time to test the change, make sure we change all the uses of this (includes other projects that use this setting). It is just the logistics of our resources and process. |
According to CMake documentation all search paths (Windows or Unix) are searched on all platforms. Therefore, line 359 in the HDFMacros.cmake file could be set to the same value as line 356. Would result in: |
Yes that should work, I mentioned |
It removes another special setting and results in a single setting: |
Maybe we could even move all the way out; |
If we want to allow a user setting it would then be in an if block: |
The last would be consistent with the other settings. |
If this is acceptable, I will create a PR for develop and then push changes to the other branches and products. |
LGTM. I like the simplification and the user setting, thanks! |
Changes pushed to all branches. |
On Windows, it looks like
HDF5_INSTALL_CMAKE_DIR
is set tocmake
inhdf5/config/cmake_ext_mod/HDFMacros.cmake
Line 359 in 5b5a1a8
Shouldn't this have the default value
${CMAKE_INSTALL_LIBDIR}/cmake
(given that theGNUInstallDirs
module is imported) or justlib/cmake
?The issue is that the CMake package files (e.g. hdf5-config.cmake) ends up being installed in
%PREFIX%\cmake\hdf5
which is NOT a path considered by the search procedure. Not convenient as downstream projects have to defineHDF5_DIR
to workaround this issue.Related to conda-forge/hdf5-feedstock#109
The text was updated successfully, but these errors were encountered: