From 0857a830b8b49c806478cfc9544e7a617723a529 Mon Sep 17 00:00:00 2001 From: Berk Geveci Date: Wed, 12 Dec 2001 11:51:03 -0500 Subject: [PATCH] Added support for a 2nd mpi library (usually mpi++) --- Modules/FindMPI.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake index 7f7efb09a..98b778984 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)