mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[svn-r19674] MPI_ checks were failing due to wrong #include of mpi.h in cmake setup
From Community
This commit is contained in:
parent
1fd8a32c91
commit
1f27dc4d04
@ -398,8 +398,7 @@ IF (HDF5_ENABLE_PARALLEL)
|
||||
SET (H5_HAVE_PARALLEL 1)
|
||||
# MPI checks, only do these if MPI_FOUND is true, otherwise they always fail
|
||||
# and once set, they are cached as false and not regenerated
|
||||
SET (CMAKE_REQUIRED_INCLUDES "${MPI_INCLUDE_PATH}/mpi.h" )
|
||||
SET (CMAKE_REQUIRED_LIBRARIES "${MPI_LIBRARY}" )
|
||||
SET (CMAKE_REQUIRED_LIBRARIES "${MPI_LIBRARY};${MPI_EXTRA_LIBRARY}" )
|
||||
CHECK_FUNCTION_EXISTS (MPI_File_get_size H5_HAVE_MPI_GET_SIZE)
|
||||
# Used by Fortran + MPI
|
||||
CHECK_SYMBOL_EXISTS (MPI_Comm_c2f "${MPI_INCLUDE_PATH}/mpi.h" H5_HAVE_MPI_MULTI_LANG_Comm)
|
||||
|
Loading…
Reference in New Issue
Block a user