Search code examples
cmakecygwinclion

CLion can't detect CMake though CMake is installed and added to the Path


Here already have an answer of CMAKE ERROR with CLion but my question is different.

I installed CLion 2017.3.1 on Windows 8 64 bit. I already installed Cygwin 64 bit on my pc and Cmake 3.9.6. In the configuration window of the CLion it can't detect Cmake. I added Cmake to the path but CLion can't detect it. the errors are shown in following Fig.

enter image description here

After clicking on Test CMake run finished with error

It shows the following errors:-

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

After installing CMake and adding it to the path why these errors are showing? What is the meaning of these errors? And how to fix these errors?

Plz help

Thank you


Solution

  • The input field titled with Make is intended for make program (which processes Makefiles), not for cmake one. If you haven't make installed, install it.

    See also this question: CMAKE_MAKE_PROGRAM not found, which describes a meaning of the first error you have got.