Hi Philip,
yes, cmake should be changed to solve this problem, so send a patch!
The cmake crew is waiting...
But it is fact, cmake has disabled the ninja generator as long as
problems with ninja on all platforms are NOT soved!
And at the ninja docu, I cant find any hints about this "cmd /c" hack?
And "ninja -v graph.png" fails on native windows or mingw, but is
used by the generated by the ninja configure.py script itself?
Do you kown how subprocess class works on possix:
execl("/bin/sh", "/bin/sh", "-c", command.c_str(), (char *) NULL);
and this is the same exactly the same on windows:
CreateProcessA(NULL, (char *)(string("cmd /c ") +
command).c_str(), ...)
So please change what you want, but do it consistent and document it!
By
Claus
On May 25, 10:37 am, Philip Craig <
phi...@pobox.com> wrote:
> Hi Claus,
>
> I also don't want the "cmd /c, or not" choice removed from ninja users. The
> correct place to do the change you want is in cmake's generation
> capabilities.
>
> On your other topic, you are correct that Microsoft compilers do not emit
> dependency information in a form parseable by ninja. We wrote a script to
> extract it (via parsing the output of the showIncludes option. That script
> is not part of ninja)
>
> regards,
> Philip
>
>
>
>
>
>
>
> On Thursday, 24 May 2012 22:00:46 UTC+1, claus.klein wrote:
>
> > You are right!
> > On Windows ninja breaks it own Build and design rules.
>
> > With MVS you have no dependency Files, so for what is it good on Windows?
>
> > On posix Ninja use sh an on windoof there is only cmd.
>
> > How generats you your dependency files and keep them uptodate with
> > microschrot?
>
> > Bad News, for all who waits for cmake with Ninja Generator
>
> > Ck
>