FindMPI.cmake 682 Bytes
Newer Older
Ken Martin's avatar
Ken Martin committed
1 2 3 4 5 6 7 8
#
# this module look sfor MPI (Message Passing Interface) support
# it will define the following values
#
# MPI_INCLUDE_PATH = where mpi.h can be found
# MPI_LIBRARY      = the library to link against (mpi mpich etc)
#

Ken Martin's avatar
Ken Martin committed
9
FIND_PATH(MPI_INCLUDE_PATH mpi.h /usr/local/include /usr/include /usr/local/mpi/include)
Ken Martin's avatar
Ken Martin committed
10

11 12 13
FIND_LIBRARY(MPI_LIBRARY 
             NAMES mpi mpich
             PATHS /usr/lib /usr/local/lib /usr/local/mpi/lib)
Ken Martin's avatar
Ken Martin committed
14

15 16
FIND_LIBRARY(MPI_EXTRA_LIBRARY 
             NAMES mpi++
Berk Geveci's avatar
Berk Geveci committed
17 18
             PATHS /usr/lib /usr/local/lib /usr/local/mpi/lib
	     DOC "If a second mpi library is necessary, specify it here.")
19 20

MARK_AS_ADVANCED(MPI_INCLUDE_PATH MPI_LIBRARY MPI_EXTRA_LIBRARY)