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
13 /usr/local/mpi/include
14 "C:/Program Files/MPICH/SDK/Include"
17 FIND_LIBRARY(MPI_LIBRARY
19 PATHS /usr/lib /usr/local/lib /usr/local/mpi/lib
20 "C:/Program Files/MPICH/SDK/Lib"
23 FIND_LIBRARY(MPI_EXTRA_LIBRARY
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)