CMake: Find MPI in HDF5 CMake config (#2400) (#2410)

Co-authored-by: kwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com>
This commit is contained in:
Larry Knox 2023-01-19 15:36:57 -06:00 committed by GitHub
parent 528bb790a1
commit 6dcb028e84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)