summaryrefslogtreecommitdiffstats
path: root/Modules/FindMPI.cmake
blob: 98b77898425a066a6253d44f8111b4dc32ef4a78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# 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)
#

FIND_PATH(MPI_INCLUDE_PATH mpi.h /usr/local/include /usr/include /usr/local/mpi/include)

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)