STYLE: use the newer FIND_XXX syntax, which should find MPI in even more
directories and doesn't require to list standard directories like /usr/lib, etc. Alex
This commit is contained in:
parent
22a2abb154
commit
8f7b0291d8
|
@ -4,11 +4,9 @@
|
||||||
# MPI_INCLUDE_PATH = where mpi.h can be found
|
# MPI_INCLUDE_PATH = where mpi.h can be found
|
||||||
# MPI_LIBRARY = the library to link in (mpi mpich etc)
|
# MPI_LIBRARY = the library to link in (mpi mpich etc)
|
||||||
|
|
||||||
FIND_PATH(MPI_INCLUDE_PATH mpi.h
|
FIND_PATH(MPI_INCLUDE_PATH NAMES mpi.h
|
||||||
/usr/local/include
|
PATH_SUFFIXES mpi mpi/include
|
||||||
/usr/include
|
PATHS
|
||||||
/usr/include/mpi
|
|
||||||
/usr/local/mpi/include
|
|
||||||
"$ENV{ProgramFiles}/MPICH/SDK/Include"
|
"$ENV{ProgramFiles}/MPICH/SDK/Include"
|
||||||
"$ENV{ProgramFiles}/MPICH2/include"
|
"$ENV{ProgramFiles}/MPICH2/include"
|
||||||
"C:/Program Files/MPICH/SDK/Include"
|
"C:/Program Files/MPICH/SDK/Include"
|
||||||
|
@ -16,7 +14,8 @@ FIND_PATH(MPI_INCLUDE_PATH mpi.h
|
||||||
|
|
||||||
FIND_LIBRARY(MPI_LIBRARY
|
FIND_LIBRARY(MPI_LIBRARY
|
||||||
NAMES mpich2 mpi mpich
|
NAMES mpich2 mpi mpich
|
||||||
PATHS /usr/lib /usr/local/lib /usr/local/mpi/lib
|
PATH_SUFFIXES mpi/lib
|
||||||
|
PATHS
|
||||||
"$ENV{ProgramFiles}/MPICH/SDK/Lib"
|
"$ENV{ProgramFiles}/MPICH/SDK/Lib"
|
||||||
"$ENV{ProgramFiles}/MPICH2/Lib"
|
"$ENV{ProgramFiles}/MPICH2/Lib"
|
||||||
"C:/Program Files/MPICH/SDK/Lib"
|
"C:/Program Files/MPICH/SDK/Lib"
|
||||||
|
@ -24,7 +23,8 @@ FIND_LIBRARY(MPI_LIBRARY
|
||||||
|
|
||||||
FIND_LIBRARY(MPI_EXTRA_LIBRARY
|
FIND_LIBRARY(MPI_EXTRA_LIBRARY
|
||||||
NAMES mpi++
|
NAMES mpi++
|
||||||
PATHS /usr/lib /usr/local/lib /usr/local/mpi/lib
|
PATH_SUFFIXES mpi/lib
|
||||||
|
PATHS
|
||||||
"$ENV{ProgramFiles}/MPICH/SDK/Lib"
|
"$ENV{ProgramFiles}/MPICH/SDK/Lib"
|
||||||
"C:/Program Files/MPICH/SDK/Lib"
|
"C:/Program Files/MPICH/SDK/Lib"
|
||||||
DOC "If a second mpi library is necessary, specify it here.")
|
DOC "If a second mpi library is necessary, specify it here.")
|
||||||
|
|
Loading…
Reference in New Issue