虽然安装了CMake并将其添加到Path,但CLion无法检测到CMake

问题描述 投票:0回答:1

这里已经有CMAKE ERROR with CLion的答案,但我的问题是不同的。

我在Windows 8 64位上安装了CLion 2017.3.1。我已经在我的电脑和Cmake 3.9.6上安装了Cygwin 64位。在CLion的配置窗口中,它无法检测到Cmake。我在路径中添加了Cmake,但是CLion无法检测到它。错误如下图所示。

enter image description here

点击Test CMake后,运行完成,出现错误

它显示以下错误: -

CMake Error: CMake was unable to find a build program corresponding to "Unix 
Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a 
different build tool.

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage

CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

-- Configuring incomplete, errors occurred!

Error code: 1

安装CMake并将其添加到路径后,为什么会显示这些错误?这些错误是什么意思?以及如何解决这些错误?

Plz的帮助

谢谢

cmake cygwin clion
1个回答
1
投票

标题为Make的输入字段用于make程序(处理Makefiles),而不是cmake程序。如果您还没有安装make,请安装它。

另见这个问题:CMAKE_MAKE_PROGRAM not found,它描述了你遇到的第一个错误的含义。

© www.soinside.com 2019 - 2024. All rights reserved.