summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-12-12 16:51:03 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-12-12 16:51:03 (GMT)
commit0857a830b8b49c806478cfc9544e7a617723a529 (patch)
tree63edc8e4f09a9e1998abf486a7ce8b4b8e992e39 /Modules
parent4108b224863f37d920d959fefe75f2187d9f44e6 (diff)
downloadCMake-0857a830b8b49c806478cfc9544e7a617723a529.zip
CMake-0857a830b8b49c806478cfc9544e7a617723a529.tar.gz
CMake-0857a830b8b49c806478cfc9544e7a617723a529.tar.bz2
Added support for a 2nd mpi library (usually mpi++)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindMPI.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
index 7f7efb0..98b7789 100644
--- a/Modules/FindMPI.cmake
+++ b/Modules/FindMPI.cmake
@@ -12,3 +12,8 @@ FIND_LIBRARY(MPI_LIBRARY
NAMES mpi mpich
PATHS /usr/lib /usr/local/lib /usr/local/mpi/lib)
+FIND_LIBRARY(MPI_EXTRA_LIBRARY
+ NAMES mpi++
+ PATHS /usr/lib /usr/local/lib /usr/local/mpi/lib)
+
+MARK_AS_ADVANCED(MPI_INCLUDE_PATH MPI_LIBRARY MPI_EXTRA_LIBRARY)