though this project is mainly for cpp, I still use this for my c/fortran project and found this line:
|
add_compile_options(-fcolor-diagnostics) |
will add compile flags for fortran compiler, and if one use clang and clang++ to compile c/c++ code, and use gfortran to compile fortran code (this is allowed since the clang and gfortran can pass the FortranCInterface_VERIFY test), gfortran just complain about unknow compile flag and exit.
maybe the flags should be added for each language enabled on this project.
though this project is mainly for cpp, I still use this for my c/fortran project and found this line:
cmake_template/cmake/StandardProjectSettings.cmake
Line 26 in 759d718
will add compile flags for fortran compiler, and if one use clang and clang++ to compile c/c++ code, and use gfortran to compile fortran code (this is allowed since the clang and gfortran can pass the
FortranCInterface_VERIFYtest), gfortran just complain about unknow compile flag and exit.maybe the flags should be added for each language enabled on this project.