summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2023-01-20 20:33:48 (GMT)
committerGitHub <noreply@github.com>2023-01-20 20:33:48 (GMT)
commitcf33347c045bde0fd280f91a3557281b4f2fb339 (patch)
tree718b00b0ba8d12b39d31d39bc42fbfa63e50793b
parentb9e83d33d11be1fa98e0e674021b931fff295a90 (diff)
downloadhdf5-cf33347c045bde0fd280f91a3557281b4f2fb339.zip
hdf5-cf33347c045bde0fd280f91a3557281b4f2fb339.tar.gz
hdf5-cf33347c045bde0fd280f91a3557281b4f2fb339.tar.bz2
CMake: Find MPI in HDF5 CMake config (#2400) (#2413)
Co-authored-by: kwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com>
-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 cfebee4..dde483e 100644
--- a/config/cmake/hdf5-config.cmake.in
+++ b/config/cmake/hdf5-config.cmake.in
@@ -61,6 +61,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 ()
#-----------------------------------------------------------------------------