Enabling PetSc breaks build with default cmake options
when i enable petsc in a clean build dir i get this error:
In file included from /home/lackhove/code/_build/nektar/ThirdParty/dist/include/petscis.h:7:0,
from /home/lackhove/code/_build/nektar/ThirdParty/dist/include/petscvec.h:9,
from /home/lackhove/code/_build/nektar/ThirdParty/dist/include/petscmat.h:6,
from /home/lackhove/code/nektar/library/MultiRegions/GlobalLinSysPETSc.h:41,
from /home/lackhove/code/nektar/library/MultiRegions/GlobalLinSysPETSc.cpp:36:
/home/lackhove/code/_build/nektar/ThirdParty/dist/include/petscsys.h:105:17: fatal error: mpi.h: Datei oder Verzeichnis nicht gefunden
#include <mpi.h>
^
enabling MPI solves the above issue, but the compilation still fails with
[ 40%] Linking CXX executable APESolver
../../library/MultiRegions/libMultiRegions.so.4.3.0: undefined reference to `__isnormal'
collect2: error: ld returned 1 exit status
solvers/APESolver/CMakeFiles/APESolver.dir/build.make:219: recipe for target 'solvers/APESolver/APESolver' failed
make[2]: *** [solvers/APESolver/APESolver] Error 1
CMakeFiles/Makefile2:803: recipe for target 'solvers/APESolver/CMakeFiles/APESolver.dir/all' failed
make[1]: *** [solvers/APESolver/CMakeFiles/APESolver.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
it is not just the APESolver but all executables, Demos and UnitTests.