Re: [Msys2-users] Workaround for cmake default to NMake Makefiles

2014-12-06 Thread Greg Jung
I have had smooth sailing using 'MSYS Makefiles' generator with some small modifications to the cmake scripting system. MSYS is a defined parameter upon cmake startup (even before project) and so I verify that in CMakeMSYSFindMake.com. Then, we are windows but uname works and so I dither with par

Re: [Msys2-users] Workaround for cmake default to NMake Makefiles

2014-12-04 Thread Ray Donnelly
On Thu, Dec 4, 2014 at 4:11 PM, Jan Niklas Hasse wrote: > 2014-08-25 22:30 GMT+02:00 Richard Shaw : >> On Mon, Aug 25, 2014 at 2:50 PM, Matthieu Vachon >> wrote: >>> >>> I think the patch works only when using mintty as the console. If you >>> use cmd directly and you start bash in it, the consol

Re: [Msys2-users] Workaround for cmake default to NMake Makefiles

2014-12-04 Thread Jan Niklas Hasse
2014-08-25 22:30 GMT+02:00 Richard Shaw : > On Mon, Aug 25, 2014 at 2:50 PM, Matthieu Vachon > wrote: >> >> I think the patch works only when using mintty as the console. If you >> use cmd directly and you start bash in it, the console is not a pipe >> but a real tty. I may be wrong though as I di

Re: [Msys2-users] Workaround for cmake default to NMake Makefiles

2014-08-26 Thread Hannes Domani
Matthieu Vachon schrieb am 21:50 Montag, 25.August 2014: > I think the patch works only when using mintty as the console. If you > use cmd directly and you start bash in it, the console is not a pipe > but a real tty. I may be wrong though as I did not test the Win32 API > calls inside the two "

Re: [Msys2-users] Workaround for cmake default to NMake Makefiles

2014-08-25 Thread Richard Shaw
On Mon, Aug 25, 2014 at 2:50 PM, Matthieu Vachon < matthieu.o.vac...@gmail.com> wrote: > I think the patch works only when using mintty as the console. If you > use cmd directly and you start bash in it, the console is not a pipe > but a real tty. I may be wrong though as I did not test the Win32

Re: [Msys2-users] Workaround for cmake default to NMake Makefiles

2014-08-25 Thread Matthieu Vachon
On Mon, Aug 25, 2014 at 3:20 PM, Richard Shaw wrote: > On Mon, Aug 25, 2014 at 5:36 AM, Hannes Domani wrote: >> >> >> I'm using this patch to detect MSYS2. >> When stdin is a pipe, default to MSYS Makefiles. >> > > I take it this test would be true for all *nix based system though, correct? > So

Re: [Msys2-users] Workaround for cmake default to NMake Makefiles

2014-08-25 Thread Richard Shaw
On Mon, Aug 25, 2014 at 5:36 AM, Hannes Domani wrote: > > I'm using this patch to detect MSYS2. > When stdin is a pipe, default to MSYS Makefiles. > > I take it this test would be true for all *nix based system though, correct? So this patch is not appropriate for upstream use but just applied to

Re: [Msys2-users] Workaround for cmake default to NMake Makefiles

2014-08-25 Thread Hannes Domani
Hello On Thu, Aug 25, 2014 at 4:27 AM, Richard Shaw wrote: > Worth asking but I doubt it... The logic is in C and although I'm not really > a programmer it doesn't look terribly sophisticated. It checks at build time, > not runtime as far as I can tell. It you could just set an environment > vari

Re: [Msys2-users] Workaround for cmake default to NMake Makefiles

2014-08-24 Thread Richard Shaw
On Thu, Aug 21, 2014 at 4:25 PM, Ray Donnelly wrote: > On Thu, Aug 21, 2014 at 9:34 PM, Richard Shaw > 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. > > May

Re: [Msys2-users] Workaround for cmake default to NMake Makefiles

2014-08-21 Thread Ray Donnelly
On Thu, Aug 21, 2014 at 9:34 PM, Richard Shaw 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 mi

[Msys2-users] Workaround for cmake default to NMake Makefiles

2014-08-21 Thread Richard Shaw
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