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

Revert to third-party MPI

parent 18e4c734
......@@ -23,19 +23,10 @@ IF( NEKTAR_USE_MPI )
SET(MPI_BUILTIN OFF CACHE INTERNAL
"Determines whether MPI is built into the compiler")
IF (NOT "${HAVE_MPI_H}" OR NOT "${HAVE_MPI_SEND}")
# No in-built MPI: try to find it on the system instead.
IF (NOT THIRDPARTY_BUILD_MPI)
FIND_PACKAGE(MPI)
INCLUDE (FindMPI)
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()
FIND_PACKAGE(MPI REQUIRED)
INCLUDE_DIRECTORIES(SYSTEM ${MPI_CXX_INCLUDE_PATH} )
MESSAGE(STATUS "Found MPI: ${MPI_CXX_LIBRARIES}")
ELSE()
SET(MPI_BUILTIN ON)
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