小编Tay*_*son的帖子

错误:找不到 CMAKE_Fortran_COMPILER。Visual Studio 2017 企业版代替 MinGW

cmake-gui我有一个项目,已成功配置并生成mingw

但是当我想配置或构建它(cmake -G "Visual Studio 15 2017" )时Visual Studio 2017 EnterpriseIntel Parallel Studio 2017 (Visual Fortran Compiler)我收到以下错误:

The Fortran compiler identification is unknown
CMake Error at CMakeLists.txt:17 (PROJECT):
  No CMAKE_Fortran_COMPILER could be found.
Run Code Online (Sandbox Code Playgroud)

所以我该怎么做?

编辑:

当我使用时cmake -G "Visual Studio 15 2017"我得到:

-- The Fortran compiler identification is unknown
CMake Error at CMakeLists.txt:17 (PROJECT):
  No CMAKE_Fortran_COMPILER could be found.



-- Configuring incomplete, errors occurred!
See also "F:/FreshElmer - Copy (3)/elmerfem/CMakeFiles/CMakeOutput.log".
See …
Run Code Online (Sandbox Code Playgroud)

windows mingw cmake visual-studio intel-fortran

8
推荐指数
0
解决办法
3469
查看次数

标签 统计

cmake ×1

intel-fortran ×1

mingw ×1

visual-studio ×1

windows ×1