On Mon, Aug 25, 2014 at 3:20 PM, Richard Shaw <[email protected]> wrote: > On Mon, Aug 25, 2014 at 5:36 AM, Hannes Domani <[email protected]> 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 the > msys2 cmake package?
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 "console". bash@mintty $ tty /dev/pty3 bash@cmd $ tty /dev/cons0 Moreover, someone redirecting cmake output to a file would also fail into potential weird behavior I think. Regards, Matt ------------------------------------------------------------------------------ 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
