CMake/Modules/FindMPI.cmake

28 lines
895 B
CMake
Raw Normal View History

# - Find MPI
# This module looks for MPI (Message Passing Interface) support
2001-05-03 01:07:09 +04:00
# it will define the following values
# MPI_INCLUDE_PATH = where mpi.h can be found
2005-12-15 22:17:43 +03:00
# MPI_LIBRARY = the library to link in (mpi mpich etc)
2001-05-03 01:07:09 +04:00
2002-04-18 23:58:11 +04:00
FIND_PATH(MPI_INCLUDE_PATH mpi.h
/usr/local/include
/usr/include
/usr/include/mpi
/usr/local/mpi/include
"C:/Program Files/MPICH/SDK/Include"
)
2001-05-03 01:07:09 +04:00
FIND_LIBRARY(MPI_LIBRARY
NAMES mpi mpich
PATHS /usr/lib /usr/local/lib /usr/local/mpi/lib
"C:/Program Files/MPICH/SDK/Lib"
)
2001-05-03 01:07:09 +04:00
FIND_LIBRARY(MPI_EXTRA_LIBRARY
NAMES mpi++
2001-12-12 21:57:41 +03:00
PATHS /usr/lib /usr/local/lib /usr/local/mpi/lib
"C:/Program Files/MPICH/SDK/Lib"
DOC "If a second mpi library is necessary, specify it here.")
MARK_AS_ADVANCED(MPI_INCLUDE_PATH MPI_LIBRARY MPI_EXTRA_LIBRARY)