I am new to С and С++ and I have a problem. In order to compile the CSFML library, I needed CMake . But as soon as I tried to configure the project in CMake gui , an error pops up:

CMake Error: CMake Makefiles. CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMake 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

The problem is that CMake as if I did not try, cannot find compilers, although they are registered in the PATH environment variable. If you run CMake from the command line, it says:

file does not exist

or

not contain CMakeLists.txt

But the file exists, and CMakeLists.txt there should not exist

I googled and looked at the answers to about the same questions, but I did not find a clear answer. I looked at a cloud of different sources, as well as official documentation, but nothing helped.

The version of CMake 3.12.3, installed from the official site.
The operating system is Windows XP SP3.
GCC MinGW compiler.

  • Instead of the word "false" apparently wanted to write "must"? - V.March
  • Yes, thanks for pointing out the mistake - Yura
  • one
    Only I understand correctly that the Операционная система Windows XP SP3. && Новичок в программировании = nothing good will work? - 0-Level UNIX Monk
  • in the arguments cmake'a passed CMAKE_C_COMPILER and CMAKE_CXX_COMPILER command to start the compiler? and in case the PATH is still not registered, with full paths? - Fat-Zer
  • All are written in the error text. You need to specify CMAKE_MAKE_PROGRAM (mingw32-make.exe), specify the folder with CMakeLists.txt, set the normal OS. - arrowd

1 answer 1

In cmake-gui unset or incorrectly set cmake variables are highlighted in red. Just manually specify the paths to the necessary files for such variables. And it is better to check once again the correctness of the MinGW installation.