How to get CMake recognize a custom Fortran compiler
I have a custom Fortran compiler that is not implemented by CMake yet. What should the compiler emit, or what option to support, so that CMake can recognize it?
I wasn't able to figure it out. It seems that there is a custom Fortran source code: https://gitlab.kitware.com/cmake/cmake/blob/a7347c022eb67272eea7dca5a58d0b94806b7d95/Modules/CMakeFortranCompilerId.F.in, which has hardwired support for predefined compilers.
It would be nice if CMake could support some kind of a standard hook, that compiler writers just have to satisfy and if they do, cmake can recognize it.