summaryrefslogtreecommitdiffstats
path: root/Modules/FindMPI.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-06-22 14:22:27 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-06-22 14:22:27 (GMT)
commit10e3efa6b5f9c681a3c8ce402057e4cf9937e0e9 (patch)
tree48f40bb808fdde4c979654892162897012b01676 /Modules/FindMPI.cmake
parentf7d4f27c2a378317fa382fc1813ba7cb31cbd839 (diff)
downloadCMake-10e3efa6b5f9c681a3c8ce402057e4cf9937e0e9.zip
CMake-10e3efa6b5f9c681a3c8ce402057e4cf9937e0e9.tar.gz
CMake-10e3efa6b5f9c681a3c8ce402057e4cf9937e0e9.tar.bz2
ENH: add support for BlueGene/L
Alex
Diffstat (limited to 'Modules/FindMPI.cmake')
-rw-r--r--Modules/FindMPI.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
index 5e91664..477fa6b 100644
--- a/Modules/FindMPI.cmake
+++ b/Modules/FindMPI.cmake
@@ -13,7 +13,7 @@ FIND_PATH(MPI_INCLUDE_PATH NAMES mpi.h
)
FIND_LIBRARY(MPI_LIBRARY
- NAMES mpich2 mpi mpich
+ NAMES mpich2 mpi mpich mpich.rts
PATH_SUFFIXES mpi/lib
PATHS
"$ENV{ProgramFiles}/MPICH/SDK/Lib"
@@ -29,4 +29,9 @@ FIND_LIBRARY(MPI_EXTRA_LIBRARY
"C:/Program Files/MPICH/SDK/Lib"
DOC "If a second mpi library is necessary, specify it here.")
+# on BlueGene/L the MPI lib is named libmpich.rts.a, there also these additional libs are required
+IF("${MPI_LIBRARY}" MATCHES "mpich.rts")
+ SET(MPI_EXTRA_LIBRARY msglayer.rts devices.rts rts.rts devices.rts CACHE STRING "Additional MPI libs" FORCE)
+ENDIF("${MPI_LIBRARY}" MATCHES "mpich.rts")
+
MARK_AS_ADVANCED(MPI_INCLUDE_PATH MPI_LIBRARY MPI_EXTRA_LIBRARY)