如何在cmake源代码中使用cmake命令

时间:2019-02-05 13:30:14

标签: c++ c cmake

我正在尝试获取cmake模块的二进制文件,但是即使cmakeLists.txt可用,我也无法在任何文件夹中执行cmake。这是我得到的错误。

tusharecmc@tusharecmc-Aspire-E5-575:~/cmake3.10.2/src/cmake-3.10.2/Modules/FortranCInterface/Verify$ cmake .
-- The C compiler identification is GNU 7.3.0
-- The Fortran compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:5 (project):
  No CMAKE_Fortran_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "FC" or the CMake cache entry CMAKE_Fortran_COMPILER to the full
  path to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/home/tusharecmc/cmake3.10.2/src/cmake-3.10.2/Modules/FortranCInterface/Verify/CMakeFiles/CMakeOutput.log".
See also "/home/tusharecmc/cmake3.10.2/src/cmake-3.10.2/Modules/FortranCInterface/Verify/CMakeFiles/CMakeError.log".`

0 个答案:

没有答案