summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-05-02 21:33:26 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-05-02 21:33:26 (GMT)
commit0e77477a783804150ed474096ad5d4457082a8f6 (patch)
treeed12f608eeb5d0f7e2e6b39e15a0d77cfae26f2a /Modules
parent13f68ae1f235ab5b6a8ed86ee6341cd06cd96bde (diff)
downloadCMake-0e77477a783804150ed474096ad5d4457082a8f6.zip
CMake-0e77477a783804150ed474096ad5d4457082a8f6.tar.gz
CMake-0e77477a783804150ed474096ad5d4457082a8f6.tar.bz2
minor fixes
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindMPI.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
index d474301..72ee7d6 100644
--- a/Modules/FindMPI.cmake
+++ b/Modules/FindMPI.cmake
@@ -7,17 +7,18 @@
# MPI_LIBRARY = the library to link against (mpi mpich etc)
#
-FIND_INCLUDE(MPI_INCLUDE_PATH mpi.h /usr/local/include /usr/include)
+FIND_PATH(MPI_INCLUDE_PATH mpi.h /usr/local/include /usr/include /usr/local/mpi/include)
# look for the different MPI libs
IF (NOT MPI_LIB_PATH)
- FIND_LIBRARY(MPI_LIB_PATH mpi /usr/lib /usr/local/lib)
+ FIND_LIBRARY(MPI_LIB_PATH mpi /usr/lib /usr/local/lib /usr/local/mpi/lib)
IF (MPI_LIB_PATH)
SET (MPI_LIBRARY mpi CACHE)
ENDIF (MPI_LIB_PATH)
ENDIF (NOT MPI_LIB_PATH)
+
IF (NOT MPI_LIB_PATH)
- FIND_LIBRARY(MPI_LIB_PATH mpich /usr/lib /usr/local/lib)
+ FIND_LIBRARY(MPI_LIB_PATH mpich /usr/lib /usr/local/lib /usr/local/mpi/lib)
IF (MPI_LIB_PATH)
SET (MPI_LIBRARY mpich CACHE)
ENDIF (MPI_LIB_PATH)