Add a ParMetis dependency check
If ParMetis is not installed on the system one gets the following error message
cmake --build . --
Scanning dependencies of target parallel2
[ 0%] Building CXX object parallel/CMakeFiles/parallel2.dir/initparallel.cc.o
<command-line>:0:1: error: macro names must be identifiers
parallel/CMakeFiles/parallel2.dir/build.make:54: recipe for target 'parallel/CMakeFiles/parallel2.dir/initparallel.cc.o' failed
This is caused by an empty -D
option in the line
cd /home/maikel/Development/Dune/dune-uggrid/build/parallel && /usr/bin/c++ -D -D_FORTIFY_SOURCE="2 [...]
Instead, add a dependency check while configuring the build.