summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2023-01-20 20:34:18 (GMT)
committerGitHub <noreply@github.com>2023-01-20 20:34:18 (GMT)
commit02fdb5017f3390fd777c7259447b2671077b59c2 (patch)
treec57b84c94b9891ec5f0369a2f295d5b0046a343f /config
parentba901528bd5d13fc062f3b788d638f8c06b027fe (diff)
downloadhdf5-02fdb5017f3390fd777c7259447b2671077b59c2.zip
hdf5-02fdb5017f3390fd777c7259447b2671077b59c2.tar.gz
hdf5-02fdb5017f3390fd777c7259447b2671077b59c2.tar.bz2
CMake: Find MPI in HDF5 CMake config (#2400) (#2412)
Co-authored-by: kwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com>
Diffstat (limited to 'config')
-rw-r--r--config/cmake/hdf5-config.cmake.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/cmake/hdf5-config.cmake.in b/config/cmake/hdf5-config.cmake.in
index 35cee4f..1a3fb7b 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)