cmake MSYS Makefiles generator missing

Scott Thibault picture Scott Thibault · May 21, 2016 · Viewed 13.8k times · Source

I have cmake 3.2.3 installed via pacman. I get an error when I try to use it from a msys64 shell:

$ cmake -G "MSYS Makefiles" ..
CMake Error: Could not create named generator MSYS Makefiles

cmake --help does not list it as an available generator.

I do see there is an MSYS.cmake in /usr/share/cmake-3.2.3/Modules/Platform.

What am I missing?

Answer

Evan picture Evan · Jul 8, 2016

Instead of installing the cmake package, I think you need to install mingw-w64-i686-cmake (or the 64-bit version mingw-w64-x86_64-cmake).