<br><br><div class="gmail_quote">On Wed, Nov 16, 2011 at 3:05 PM, OKUMURA Yuki <span dir="ltr"><<a href="mailto:mjt@cltn.org">mjt@cltn.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

(Sorry Bill, i repost here..)<br>
<br>
2011/11/16 Bill Hoffman <<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>>:<br>
- snip -<br>
<div class="im">> What type of evolution will Ninja need?   I suppose it could use cmake<br>
> scripts and exectue_process which can do && type things pretty easy.<br>
<br>
</div>Why not insert "cmd /c" everywhere? :)<br>
Anyway, i had tried this in early this month,<br>
<a href="https://github.com/okuoku/CMake/commit/db19df03606684f313c9e86b313218feee9cce3f" target="_blank">https://github.com/okuoku/CMake/commit/db19df03606684f313c9e86b313218feee9cce3f</a><br>
but it didn't work well.<br>
<br>
I think almost all use of "&&" is just "chdir /d $workdir &&<br>
compile/link-command." So, adding $workdir<br>
specifier to target syntax of Ninja might work for many cases.<br></blockquote><div><br></div><div>That's right. I just had a look at the build.ninja file generated by the Ninja Generator and it actually uses && only for changing the working directory.  I will suggest a patch to Ninja to support working directory for each build statement.</div>

<div></div></div><div><br></div><div>Cheers,</div><div><br></div>-- <br>Nicolas Desprès<br><br>