On Thu, Aug 21, 2014 at 9:34 PM, Richard Shaw <[email protected]> wrote: > After doing some research it seems that the default makefile generator is > decided at build time, so it's not determined dynamically at runtime like > one would expect. > > For whatever reason, the default makefile when building on msys or mingw is > "NMake Makefiles" and if you try to configure a project that uses cmake and > it default to this, you have to pretty much "rm -rf *" and go back and do it > the hard way, i.e.: > > $ cmake -G "MSYS Makefiles" ... > > Which is a pain to have to remember and takes much longer. > > I fixed this by adding an alias to ~/.bash_profile: > alias cmake="/mingw32/bin/cmake -G \"MSYS Makefiles\"" > > Now I'm only building for i686 right now but I could I could add two and > instead call them "cmake32" and "cmake64" or something like that.
Maybe we could ask cmake developers whether they'd consider the default being a bit more clever, say, looking for ninja.exe, nmake.exe, make.exe then mingw32-make.exe (or some other order) in PATH and using that as the default? Then falling back to nmake.exe if nothing is found? (besides, where's jom in this list? It's nmake compatible but allows parallelism via -jN) > > Thanks, > Richard > > ------------------------------------------------------------------------------ > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > _______________________________________________ > Msys2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/msys2-users > ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Msys2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/msys2-users
