CMake config depends on MPI but does not find it #2176
Labels
Component - Build
CMake, Autotools
Component - Parallel
Parallel HDF5 (NOT thread-safety)
Priority - 1. High 🔼
These are important issues that should be resolved in the next release
Type - Bug / Bugfix
Please report security issues to help@hdfgroup.org instead of creating an issue on GitHub
Milestone
Describe the bug
The hdf5 library code installed had
#include
statments looking for MPI that could not be found.Redirected CC @jhendersonHDF if interested.
hpc-io/vfd-gds#8 (comment)
If I compile
hdf5 +mpi
(specifically 1.13.2 via spack with OpenMPI), my consuming cmake code should only need tofind_package(HDF5 CONFIG REQUIRED)
and I link againsthdf5-static|shared
. I should not have tofind_package(MPI REQUIRED)
and link against it in addition.Expected behavior
If mpi is a dependency of hdf5, hdf5's CMake should find that dependency.
Platform (please complete the following information)
spack
The text was updated successfully, but these errors were encountered: