setting fortran language standard

Hello,

GFortran supports passing the Fortran standard via -std=[f95|f2003|f2008|...]

Is there a correct way to do this in CMake? It appears that Fortran isn’t supported as a language in:

https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_STANDARD.html#variable:CMAKE_<LANG>_STANDARD

Thank you.

Yes, support for Fortran standard levels would need to be added. It hasn’t been requested yet, so it’s not surprising. Please file a feature request for this.

1 Like

Thank you. The request is here:
https://gitlab.kitware.com/cmake/cmake/-/issues/25006