Hello!
I am trying to use CMake for OpenFAST. I am using the following command:
cmake .. -G “Visual Studio 17 2022” -A x64 -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON
However, I get the following error:
CMake Error at CMakeLists.txt:18 (project):
No CMAKE_Fortran_COMPILER could be found.
I do not understand why this happens, since I installed the compiler from Intel’s page, along with all the other recommended packages, as seen in the picture below:
I also tried to set the compiler from Visual Studio in Tools → Intel compiler, but I got the same result. Also, I tried to follow the steps described in the threads Cmake Cannot Find my Fortran Compiler and No CMAKE_Fortran_COMPILER could be found., but the error seems to be caused by something different.
Is there a way to fix this error?