Skip to content
Snippets Groups Projects
Commit f71d5241 authored by Christoph Grüninger's avatar Christoph Grüninger Committed by Christoph Grüninger
Browse files

[cmake] Fix compatibility issue with CMake 3.10 leadig to -D-pthread

CMake 3.10 overhauled FindMPI.cmake. Now -pthread ends in various
MPI-related variables and from there in MPI_DUNE_COMPILE_FLAGS. With
COMPILE_DEFINITIONS -pthread got the prefix -D.
Changed to COMPILE_OPTIONS which does not add -D to the passed flags.

Fixes #31
parent 66e393e8
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -3,7 +3,7 @@ if(MPI_C_FOUND)
# Maybe dune-common should export them?
add_definitions(-DENABLE_MPI=1 -DMPICH_SKIP_MPICXX -DMPIPP_H)
include_directories("${MPI_DUNE_INCLUDE_PATH}")
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS ${MPI_DUNE_COMPILE_FLAGS})
set_property(DIRECTORY APPEND_STRING PROPERTY COMPILE_OPTIONS "${MPI_DUNE_COMPILE_FLAGS}")
ug_add_dim_libs(parallel OBJECT initparallel.cc) # OBJECT_DIM_LIBS ddd dddif)
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment