How to set up compilation with Intel Fortran compiler on Windows correctly?

Also, CMakeFortranCompilerID.F is located at CMakeFiles\3.16-rc3\CompilerIdFortran and its full contents are here:

https://pastebin.com/aBspiUp6

Also, you can find the whole folder together with CMakeCache.txt here: https://uloz.to/file/t9KoZwAZ7pPm/build-zip