summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2010-10-27 15:57:24 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2010-10-27 15:57:24 (GMT)
commit68690772e089db36b5ab85fd6e3b090c7c51f07d (patch)
tree03209986065f195cb9c292629037a28fad9f0322
parent901afe107a24b24c9fd019b5881afb5966b38665 (diff)
downloadhdf5-68690772e089db36b5ab85fd6e3b090c7c51f07d.zip
hdf5-68690772e089db36b5ab85fd6e3b090c7c51f07d.tar.gz
hdf5-68690772e089db36b5ab85fd6e3b090c7c51f07d.tar.bz2
[svn-r19676] MPI_ checks were failing due to wrong #include of mpi.h in cmake setup
From Community
-rw-r--r--CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5b05a77..1e86307 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -400,8 +400,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)