Incorrect module flag set in Intel Fortran compiler

The compiler selection is not done using CMAKE_Fortran_COMPILER_ID variable (this one is initialized by CMake, so should be read-only for the user).
To specify the compiler, you can use the FC environment variable or the CMAKE_Fortran_COMPILER variable.

1 Like