Skip to content
Snippets Groups Projects
Commit e5cac89e authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

force both C and CXX compiler when ENABLE_MPI is set

parent 93775f11
Branches
Tags
No related merge requests found
...@@ -627,7 +627,8 @@ if(ENABLE_MPI) ...@@ -627,7 +627,8 @@ if(ENABLE_MPI)
list(APPEND EXTERNAL_INCLUDES ${MPI_INCLUDE_DIR}) list(APPEND EXTERNAL_INCLUDES ${MPI_INCLUDE_DIR})
list(APPEND EXTERNAL_LIBRARIES ${MPI_LIBRARIES}) list(APPEND EXTERNAL_LIBRARIES ${MPI_LIBRARIES})
include(CMakeForceCompiler) include(CMakeForceCompiler)
cmake_force_cxx_compiler(${MPI_COMPILER} "MPI C++ Compiler") 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