<br><br><div class="gmail_quote">2012/2/19 Peter Collingbourne <span dir="ltr"><<a href="mailto:peter@pcc.me.uk">peter@pcc.me.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5">On Fri, Feb 17, 2012 at 09:16:31PM +0100, Nicolas Desprès wrote:<br>
> 2012/2/17 Bill Hoffman <<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>><br>
><br>
> > On 2/17/2012 12:26 PM, Nicolas Desprès wrote:<br>
> ><br>
> >><br>
> >> I think it is a bug in the generator which do not escape the space<br>
> >> properly using the $ character as supported by Ninja.<br>
> >><br>
> >> --<br>
> >> Nicolas Desprès<br>
> >><br>
> >>  Will you be able to fix that?<br>
> ><br>
><br>
> I think yes. It is just a matter of time. My weekend is already overloaded.<br>
> I'll try to do it. If Peter or someone else in the community comes up with<br>
> a patch before me everybody would be happy :-)<br>
<br>
</div></div>I decided to look into escaping rules this weekend.  Now with the<br>
code on the ninja-generator branch, CMake can build itself with both<br>
source and build directories containing spaces, and pass all tests.<br>
LLVM/Clang can also build with both directory names containing spaces.<br>
<br></blockquote><div><br></div><div>Thanks for this Peter.  I have just tried the new stage/ninja-generator branch with spaces in both the source and the binary directory and I got this result for the test suite:</div><div>

<br></div><div> The following tests FAILED:</div><div><span class="Apple-tab-span" style="white-space:pre">     </span> 83 - CPackComponents (Failed)</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>217 - CMake.CheckSourceTree (Failed)</div>

<div></div></div><div><br></div><div>Note that on my Linux box:</div><div>- CMake.CheckSourceTree always fail even on the master branch (I never tried to understand why).</div><div>- CPackComponents fails only when there are spaces but the Unix Makefiles generator has the same issue.</div>

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