IntelLLVM: Default Fortran flags on Windows hard-code /fpp
Came across a somewhat old piece of fortran code that cannot compile with /fpp
specified in ifort
:
https://gitlab.cern.ch/garfield/garfieldpp/-/blob/master/Magboltz/magboltz.f
With /fpp
will output:
#error: comment doesn't end to the end of file.
Cmake always generates /fpp
in CMAKE_Fortran_FLAGS
when compiling with ifort (even with CMAKE_Fortran_PREPROCESS
set to OFF
), and had to edit cmake cache to remove this.
Edited by 尚嘉宣