STYLE: Nightly Version update
[cmake.git] / Modules / FindMPI.cmake
blob1f2013a781211d1f2639414217a2f0e6d5a3c40a
2 # this module look sfor MPI (Message Passing Interface) support
3 # it will define the following values
5 # MPI_INCLUDE_PATH = where mpi.h can be found
6 # MPI_LIBRARY      = the library to link against (mpi mpich etc)
9 FIND_PATH(MPI_INCLUDE_PATH mpi.h 
10           /usr/local/include 
11           /usr/include 
12           /usr/include/mpi
13           /usr/local/mpi/include
14           "C:/Program Files/MPICH/SDK/Include" 
17 FIND_LIBRARY(MPI_LIBRARY 
18              NAMES mpi mpich
19              PATHS /usr/lib /usr/local/lib /usr/local/mpi/lib
20              "C:/Program Files/MPICH/SDK/Lib" 
23 FIND_LIBRARY(MPI_EXTRA_LIBRARY 
24              NAMES mpi++
25              PATHS /usr/lib /usr/local/lib /usr/local/mpi/lib
26              "C:/Program Files/MPICH/SDK/Lib" 
27              DOC "If a second mpi library is necessary, specify it here.")
29 MARK_AS_ADVANCED(MPI_INCLUDE_PATH MPI_LIBRARY MPI_EXTRA_LIBRARY)