summaryrefslogtreecommitdiffstats
path: root/fortran
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2014-03-25 21:57:30 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2014-03-25 21:57:30 (GMT)
commit9db0c02b969907ed1d647b05329ef73f8207c4fb (patch)
treed17605ffdc884bbeb10434e1471333158f284fc5 /fortran
parent425408b5a13bdb4bab369846cd9f9108b058cb82 (diff)
downloadhdf5-9db0c02b969907ed1d647b05329ef73f8207c4fb.zip
hdf5-9db0c02b969907ed1d647b05329ef73f8207c4fb.tar.gz
hdf5-9db0c02b969907ed1d647b05329ef73f8207c4fb.tar.bz2
[svn-r24899] Add msmpi fortran libs to FindMPI
Diffstat (limited to 'fortran')
-rw-r--r--fortran/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/fortran/CMakeLists.txt b/fortran/CMakeLists.txt
index 4d8c9dd..3fe9e7d 100644
--- a/fortran/CMakeLists.txt
+++ b/fortran/CMakeLists.txt
@@ -2,7 +2,11 @@ cmake_minimum_required (VERSION 2.8.11)
PROJECT (HDF5_F90 C CXX Fortran)
if (H5_HAVE_PARALLEL)
- FIND_PACKAGE (MPI)
+ INCLUDE (FindMPI)
+ set (LINK_LIBS ${LINK_LIBS} ${MPI_Fortran_LIBRARIES})
+ if (MPI_Fortran_LINK_FLAGS)
+ set (CMAKE_EXE_LINKER_FLAGS "${MPI_Fortran_LINK_FLAGS} ${CMAKE_EXE_LINKER_FLAGS}")
+ endif (MPI_Fortran_LINK_FLAGS)
endif (H5_HAVE_PARALLEL)
#-----------------------------------------------------------------------------