On Wednesday, 16 November 2022 at 16:50:36 UTC Albrecht Schlosser wrote:
On 11/16/22 17:31 'Philip Rose' via
fltk.general wrote:
I managed to
get ‘-G “MinGW Makefiles”’ to work, ‘-G “MSYS Makefiles”’
still doesn’t find the generator.
OK - that's weird...
Is there a "make" in your default Msys2 path? (Not
mingw32-make or gmake, actually something that is just "make"...?)
I'd say this is OK. They work mostly the same but AFAICT "MSYS
Makefiles" are *intended* to be used for building programs that are
used for MSYS itself (or the MSYS DLL etc.) whereas "MinGW
Makefiles" should be used for building "Windows executables". I'm
not sure what flavor of build tools "Unix Makefiles" uses by default
in an MSYS2 environment.
My "understanding" (I'm using that word loosely here...) is that the 3 different generators "MSYS", "MinGW" and "Unix" all should work about the same for us here.
The difference is that the "MSYS" case creates Makefiles with a syntax that expects to be run from an Msys (or other sh-compatible) shell and uses "make" as the tool.
The "MinGW" option uses "mingw32-make" as the tool, and creates a syntax that should be compatible with cmd.exe as the shell.
The "Unix"
option is like the MSYS case in that it uses "make" and "sh", so should be about the same as the "MSYS" option in this case.
I think! See also: https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html