diff options
author | kwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com> | 2023-01-18 22:26:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-18 22:26:35 (GMT) |
commit | 509fe962d42b3f02d356d2668b04712df06daf7f (patch) | |
tree | bbc8ad722876284b1134da965a4c9e986322b1c7 /config/cmake | |
parent | 2c9de7a9ae2a10ffd3e514e86842a863cf7ee925 (diff) | |
download | hdf5-509fe962d42b3f02d356d2668b04712df06daf7f.zip hdf5-509fe962d42b3f02d356d2668b04712df06daf7f.tar.gz hdf5-509fe962d42b3f02d356d2668b04712df06daf7f.tar.bz2 |
CMake: Find MPI in HDF5 CMake config (#2400)
Diffstat (limited to 'config/cmake')
-rw-r--r-- | config/cmake/hdf5-config.cmake.in | 2 |
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) |