summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/hdf5/hdf5_1_14_0_config_find_mpi.patch
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/hdf5/hdf5_1_14_0_config_find_mpi.patch')
-rw-r--r--var/spack/repos/builtin/packages/hdf5/hdf5_1_14_0_config_find_mpi.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hdf5/hdf5_1_14_0_config_find_mpi.patch b/var/spack/repos/builtin/packages/hdf5/hdf5_1_14_0_config_find_mpi.patch
new file mode 100644
index 0000000000..49f7fc8376
--- /dev/null
+++ b/var/spack/repos/builtin/packages/hdf5/hdf5_1_14_0_config_find_mpi.patch
@@ -0,0 +1,13 @@
+diff --git a/config/cmake/hdf5-config.cmake.in b/config/cmake/hdf5-config.cmake.in
+index 35cee4f..b336377 100644
+--- a/config/cmake/hdf5-config.cmake.in
++++ b/config/cmake/hdf5-config.cmake.in
+@@ -63,6 +63,8 @@ if (${HDF5_PACKAGE_NAME}_ENABLE_PARALLEL)
+ set (${HDF5_PACKAGE_NAME}_MPI_Fortran_INCLUDE_PATH "@MPI_Fortran_INCLUDE_DIRS@")
+ set (${HDF5_PACKAGE_NAME}_MPI_Fortran_LIBRARIES "@MPI_Fortran_LIBRARIES@")
+ endif ()
++
++ find_package(MPI QUIET REQUIRED)
+ endif ()
+
+ if (${HDF5_PACKAGE_NAME}_BUILD_JAVA)