32

I've installed CLion and I plan to start coding on C++. I've also installed Cygwin. I've researched for the last hour or so on how a compiler works and how to use it, but when I selected the compiler on Clion I get the 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"

and

CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

3
  • What OS are you on? Commented Jan 9, 2018 at 1:03
  • I am on Windows 10. Commented Jan 9, 2018 at 1:04
  • 1
    You also need to install make to have cmake work. (At least in Cygwin.) Commented Aug 3, 2023 at 13:04

1 Answer 1

20

At first glance it seems to me you are missing a compiler. Do you have a compiler installed (ex: g++) or Windows equivalent? You mentioned you are using Cygwin, if you are planning to use gcc/g++ etc. take a look at this tutorial

You can install them via Cygwin

Sign up to request clarification or add additional context in comments.

7 Comments

Thank you! That was exactly what I needed.
Similar problem on Fedora 30. Had to install C++ and make.
@DaveTaflin same problem I can't fix it.. No Unix Makefiles found.. Please send me links to where you installed them...
@turmuka I installed packages cmake.x86_64, gcc-c++.x86_64 and make.x86_64. No links, just the Yum package manager (e.g. shell command "sudo yum install cmake"). Are you on Fedora 30?
@DebabrataSamal I'm on arch and I fixed the issue by installing make and gcc through pacman. You can do something like "sudo pacman -Syu make" and "sudo pacman -Syu gcc" to install both packages if your system uses pacman as it's manager.
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.