Skip to content

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

Christoph Grüninger requested to merge fix/#34-pthread-from-FindMPI into master

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 #34 (closed)

Edited by Christoph Grüninger

Merge request reports

Loading