Guidelines for using CMake on MSYS2
Closed this issue · 0 comments
eine commented
When building for mingw with CMake, one has to take care to install the mingw version, not msys version, of CMake, i.e. the one prefixed with
mingw-w64-*
.
- When building with CMake on Windows for mingw targets, one has to set a a choice of generator with
-G
; the default is NMake, which looks for the installed MSVC compilers instead. You can choose betweenNinja
(install${{matrix.prefix}}-ninja
; the build uses the commandninja
),MinGW Makefiles
(install${{matrix.prefix}}-make
, the build usesmingw32-make
) orMSYS Makefiles
(installmake
, and the build uses the plainmake
command).
/cc @mstorsjo