diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-09 18:53:32 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-09 18:53:32 (GMT) |
commit | f07ee5b8177e9e08f290e3acdff6c31d6b694bf6 (patch) | |
tree | 7d08c74e73010dfe3bd735b592fd64f09de5ab9c /Modules/FindMPI.cmake | |
parent | 1dc7ae38ead50498b9e813d7c6e96f9d850b45ea (diff) | |
download | CMake-f07ee5b8177e9e08f290e3acdff6c31d6b694bf6.zip CMake-f07ee5b8177e9e08f290e3acdff6c31d6b694bf6.tar.gz CMake-f07ee5b8177e9e08f290e3acdff6c31d6b694bf6.tar.bz2 |
ENH: change find library and find program to look for more than one name
Diffstat (limited to 'Modules/FindMPI.cmake')
-rw-r--r-- | Modules/FindMPI.cmake | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake index 72ee7d6..7f7efb0 100644 --- a/Modules/FindMPI.cmake +++ b/Modules/FindMPI.cmake @@ -3,24 +3,12 @@ # it will define the following values # # MPI_INCLUDE_PATH = where mpi.h can be found -# MPI_LIB_PATH = path to the mpi library # 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) -# look for the different MPI libs -IF (NOT MPI_LIB_PATH) - FIND_LIBRARY(MPI_LIB_PATH mpi /usr/lib /usr/local/lib /usr/local/mpi/lib) - IF (MPI_LIB_PATH) - SET (MPI_LIBRARY mpi CACHE) - ENDIF (MPI_LIB_PATH) -ENDIF (NOT MPI_LIB_PATH) - -IF (NOT MPI_LIB_PATH) - FIND_LIBRARY(MPI_LIB_PATH mpich /usr/lib /usr/local/lib /usr/local/mpi/lib) - IF (MPI_LIB_PATH) - SET (MPI_LIBRARY mpich CACHE) - ENDIF (MPI_LIB_PATH) -ENDIF (NOT MPI_LIB_PATH) +FIND_LIBRARY(MPI_LIBRARY + NAMES mpi mpich + PATHS /usr/lib /usr/local/lib /usr/local/mpi/lib) |