mirror of
https://github.com/reactos/CMake.git
synced 2024-11-26 04:50:24 +00:00
ENH: add support for BlueGene/L
Alex
This commit is contained in:
parent
f7d4f27c2a
commit
10e3efa6b5
@ -1,5 +1,5 @@
|
|||||||
# just install the modules
|
# just install the modules
|
||||||
# new file added, force rerunning cmake
|
# new file added, force rerunning cmake #
|
||||||
|
|
||||||
SUBDIRS(Platform)
|
SUBDIRS(Platform)
|
||||||
INSTALL_FILES(${CMAKE_DATA_DIR}/Modules .*\\.cmake$)
|
INSTALL_FILES(${CMAKE_DATA_DIR}/Modules .*\\.cmake$)
|
||||||
|
@ -13,7 +13,7 @@ FIND_PATH(MPI_INCLUDE_PATH NAMES mpi.h
|
|||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(MPI_LIBRARY
|
FIND_LIBRARY(MPI_LIBRARY
|
||||||
NAMES mpich2 mpi mpich
|
NAMES mpich2 mpi mpich mpich.rts
|
||||||
PATH_SUFFIXES mpi/lib
|
PATH_SUFFIXES mpi/lib
|
||||||
PATHS
|
PATHS
|
||||||
"$ENV{ProgramFiles}/MPICH/SDK/Lib"
|
"$ENV{ProgramFiles}/MPICH/SDK/Lib"
|
||||||
@ -29,4 +29,9 @@ FIND_LIBRARY(MPI_EXTRA_LIBRARY
|
|||||||
"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.")
|
||||||
|
|
||||||
|
# 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)
|
MARK_AS_ADVANCED(MPI_INCLUDE_PATH MPI_LIBRARY MPI_EXTRA_LIBRARY)
|
||||||
|
22
Modules/Platform/BlueGeneL.cmake
Normal file
22
Modules/Platform/BlueGeneL.cmake
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#the compute nodes on BlueGene/L don't support shared libs
|
||||||
|
SET(CMAKE_TARGET_SUPPORTS_ONLY_STATIC_LIBS TRUE)
|
||||||
|
|
||||||
|
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") # -pic
|
||||||
|
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "") # -shared
|
||||||
|
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib
|
||||||
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "") # -rpath
|
||||||
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP "") # : or empty
|
||||||
|
|
||||||
|
SET(CMAKE_LINK_LIBRARY_SUFFIX "")
|
||||||
|
SET(CMAKE_STATIC_LIBRARY_PREFIX "lib")
|
||||||
|
SET(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
|
||||||
|
SET(CMAKE_SHARED_LIBRARY_PREFIX "lib") # lib
|
||||||
|
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".a") # .a
|
||||||
|
SET(CMAKE_EXECUTABLE_SUFFIX "") # .exe
|
||||||
|
SET(CMAKE_DL_LIBS "" )
|
||||||
|
|
||||||
|
SET(CMAKE_FIND_LIBRARY_PREFIXES "lib")
|
||||||
|
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
|
||||||
|
|
||||||
|
|
||||||
|
INCLUDE(Platform/UnixPaths)
|
Loading…
Reference in New Issue
Block a user