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

Allow project to build when using recent releases of HDF5 #47

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

cmacmackin
Copy link
Contributor

I did some investigation into #37 and found that the reason we are getting CMake errors when trying to build against recent versions of HDF5 is because they make MPI_C a public dependency. Even though we import MPI, CMake only imports the MPI libraries corresponding to the language(s) of the the project we are working on which, in our case, is C++. I have raised a bug report with HDF5 (HDFGroup/hdf5#3844). In the meantime, this PR will fix the issue for us.

@will-saunders-ukaea will-saunders-ukaea merged commit 20adec1 into main Nov 13, 2023
@will-saunders-ukaea
Copy link
Contributor

Thanks!

@will-saunders-ukaea will-saunders-ukaea deleted the cmacmackin/fix-hdf5-cmake branch November 13, 2023 11:36
cmacmackin added a commit that referenced this pull request Apr 11, 2024
Previously #47 had fixed an issue where the parallel version of HDF5
couldn't find the target MPI::MPI_C when it is loaded in
CMake. However, this fix got reverted in #57.
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.

2 participants