Skip to content
Snippets Groups Projects
Commit 0411ea2c authored by Nico Schlömer's avatar Nico Schlömer
Browse files

cmake mpi fixes

parent c82ec07c
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -727,12 +727,8 @@ if(ENABLE_MPI) ...@@ -727,12 +727,8 @@ if(ENABLE_MPI)
find_package(MPI) find_package(MPI)
if(MPI_FOUND) if(MPI_FOUND)
set_config_option(HAVE_MPI "MPI") set_config_option(HAVE_MPI "MPI")
list(APPEND EXTERNAL_INCLUDES ${MPI_INCLUDE_DIR}) list(APPEND EXTERNAL_INCLUDES ${MPI_CXX_INCLUDE_PATH})
list(APPEND EXTERNAL_LIBRARIES ${MPI_LIBRARIES}) list(APPEND EXTERNAL_LIBRARIES ${MPI_CXX_LIBRARIES})
include(CMakeForceCompiler)
# Warning: this actually requires cmake >= 2.8.5
cmake_force_c_compiler(${MPI_C_COMPILER} "MPI C Compiler")
cmake_force_cxx_compiler(${MPI_CXX_COMPILER} "MPI C++ Compiler")
endif(MPI_FOUND) endif(MPI_FOUND)
endif(ENABLE_MPI) endif(ENABLE_MPI)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment