Fortran: Assume F90 support
Besides OpenWatcom, currently supported/available CMake Fortran compilers support Fortran 95+. Testing Fortran 90 support separately from Fortran 77 slows down the CMake configure, particularly on Windows. I would like to eliminate the extra try_compile() currently inherent in CMake configure for Fortran projects. CMake configure speed benefit for Fortran on Windows with solid state hard drive by eliminating this check as in !6150 (closed):
- GCC Gfortran 10: about 1 second
- Intel Fortran oneAPI 2021.2: 2-3 seconds
As an example from C, while CMake also supports at least one pre-C89 compiler, CMake doesn't appear to separately force testing of C89 compliance on each CMake configure.
It appears Concurrent Fortran has not been a product for several years. Is anyone using this compiler anymore? Is OpenWatcom used mainly for C/C++?
To handle Fortran for "Concurrent Fortran" and "OpenWatcom", I suggest either:
- deprecating those two compilers for Fortran
- make
if(MATCHES)
statements for those Fortran_COMPILER_ID disabling Fortran 90
From https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_ID.html the CMake-supported Fortran 90+ compilers appear to be: Absoft, Cray, Flang, G95, GNU, Intel, IntelLLVM, NVHPC, PGI, Pathscale, XL