Commit 01fb1258 authored by David Moxey's avatar David Moxey
Browse files

Revert to third-party MPI

parent 18e4c734
...@@ -23,19 +23,10 @@ IF( NEKTAR_USE_MPI ) ...@@ -23,19 +23,10 @@ IF( NEKTAR_USE_MPI )
SET(MPI_BUILTIN OFF CACHE INTERNAL SET(MPI_BUILTIN OFF CACHE INTERNAL
"Determines whether MPI is built into the compiler") "Determines whether MPI is built into the compiler")
IF (NOT "${HAVE_MPI_H}" OR NOT "${HAVE_MPI_SEND}") IF (NOT "${HAVE_MPI_H}" OR NOT "${HAVE_MPI_SEND}")
# No in-built MPI: try to find it on the system instead. FIND_PACKAGE(MPI REQUIRED)
IF (NOT THIRDPARTY_BUILD_MPI)
FIND_PACKAGE(MPI) INCLUDE_DIRECTORIES(SYSTEM ${MPI_CXX_INCLUDE_PATH} )
INCLUDE (FindMPI) MESSAGE(STATUS "Found MPI: ${MPI_CXX_LIBRARIES}")
IF (NOT MPI_CXX_FOUND)
# No MPI at all: we have to build it
SET(BUILD_MPI ON)
ELSE()
MARK_AS_ADVANCED(file_cmd)
INCLUDE_DIRECTORIES(SYSTEM ${MPI_CXX_INCLUDE_PATH})
MESSAGE(STATUS "Found MPI: ${MPI_CXX_LIBRARIES}")
ENDIF()
ENDIF()
ELSE() ELSE()
SET(MPI_BUILTIN ON) SET(MPI_BUILTIN ON)
MESSAGE(STATUS "Found MPI: built in") MESSAGE(STATUS "Found MPI: built in")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment