# Fortran compiler is not found

**URL:** https://discourse.cmake.org/t/fortran-compiler-is-not-found/14298
**Category:** Usage
**Created:** [June 30, 2025, 1:17pm UTC](https://discourse.cmake.org/t/fortran-compiler-is-not-found/14298 "2025-06-30T13:17:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Tudor.Istrate](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/t/ce73a5/32.png) [@Tudor.Istrate](https://discourse.cmake.org/u/Tudor.Istrate)
#### Post date: [June 30, 2025, 1:17pm UTC](https://discourse.cmake.org/t/fortran-compiler-is-not-found/14298/1 "2025-06-30T13:17:08Z")

</div>

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:

 ![image](https://discourse.cmake.org/uploads/default/original/2X/3/341811210488716ca33cb39f9532291095fae758.png)

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](https://discourse.cmake.org/t/cmake-cannot-find-my-fortran-compiler/13902) and [No CMAKE\_Fortran\_COMPILER could be found.](https://discourse.cmake.org/t/no-cmake-fortran-compiler-could-be-found/3720), but the error seems to be caused by something different.  
Is there a way to fix this error?
