Cmake applies C++ compilation flags on C/Fortran code
Our CMake configuration applies the c++ -std compiler flags also to C and Fortran source code. This prevents compiling xFitter on modern MacOs as newer compilers treat this as an error rather than a warning.
I have not been able to fix this issue, but it originates from using the ROOT compilation flags. Without compiling ROOT, xFitter compiles and runs without problems.