I need to select a different build tool?

I tried setting up CLion today and got the following errors

 

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.
Error:CMAKE_C_COMPILER not set, after EnableLanguage
Error:CMAKE_CXX_COMPILER not set, after EnableLanguage

 

I'm fairly new to programming, especially in C++, and google has been of little help.

2 comments
Comment actions Permalink

Hi Bryan.

Sorry for the delay. Please try using http://stackoverflow.com/a/6144391. Also please attach a screenshot via `Settings | Build, Execution, Deployment | Toolchains`.

0
Comment actions Permalink

Here you are

 

http://imgur.com/a/URt7p

 

I found that I had not installed MinGW properly. However I'm now faced with a new issue, in the CMakeList.txt file, I have to change the line

 

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11"

to

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")

in order for the program to build and compile correctly, otherwise I get a very large error.

0

Please sign in to leave a comment.