Build Fails with CMake 3.10
After updating to CMake 3.10, dune-uggrid fails with error: <command-line>:0:1: error: macro names must be identifiers
After some research I suppose that CMake 3.10 somehow creates illegal definition flags -D-pthread
in some flag.make files located in the sub-directory parallel of the release-build of dune-uggrid.
e.g. release-build/dune-uggrid/parallel/CMakeFiles/parallel3.dir/flags.make
CXX_DEFINES = -D-pthread -DENABLE_MPI=1 -DFOR_DUNE -DHAVE_CONFIG_H -DMPICH_SKIP_MPICXX -DMPIPP_H -DModelP -DUGLIB -DUG_DIM_3 -DUG_USE_NEW_DIMENSION_DEFINES -DUG_USE_SYSTEM_HEAP=1
System:
Arch-Linux
CMake 3.10.0
Make 4.2.1
gcc 7.2.1