Skip to content
Snippets Groups Projects
Commit fbfa416b authored by Markus Blatt's avatar Markus Blatt
Browse files

[cmake,release] Activate MPI in headercheck.

Somehow MPI was never activated for the headercheck. This patch fixes this.
parent dc487bc5
Branches
Tags
No related merge requests found
......@@ -34,6 +34,11 @@ if(MPI_CXX_FOUND)
set(MPI_DUNE_LIBRARIES ${CMAKE_THREAD_LIBS_INIT} ${MPI_C_LIBRARIES} CACHE STRING
"Libraries used by DUNE when linking MPI programs")
set_property(GLOBAL APPEND PROPERTY ALL_PKG_FLAGS "-DENABLE_MPI=1 -DMPICH_SKIP_MPICXX -DMPIPP_H")
foreach(dir ${MPI_DUNE_INCLUDE_PATH})
set_property(GLOBAL APPEND PROPERTY ALL_PKG_FLAGS "-I${dir}")
endforeach()
# Check whether the MPI-2 standard is supported
include(CMakePushCheckState)
include(CheckFunctionExists)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment