Hi,<div><br></div><div>I am a fan of Ninja. Â Since I started using it, everything&#39;s been built much, much faster than before. Â Among other things because I use CMake to publish headers to the binary directory so as to allow me to include the headers with a relative path without having to move all my headers to a central include directory (I want my source files and headers to be in the same directory). Â Ninja does this very fast, whereas GNU Make takes forever to publish my header files.</div>
<div><br></div><div>However, I have a puzzling problem: Out of the blue, Ninja started failing to build my project. Â If I remake the project with &#39;cmake -G &quot;MinGW Makefiles&quot;&#39;, it takes ages to build but it succeeds. Â If I do &#39;cmake -G Ninja&#39;, it quickly aborts because it seems that either CMake or Ninja wants to build one of the last targets at a very early point in the build phase. Â I have an executable, driver.exe, which is supposed to be built as the very last item. Â With Ninja, however, it pops up around 20 percent into the build and the build fails because the dependent libraries are nowhere to be found (they haven&#39;t been built yet). Â I have tried clearing the binaries directory (rd /s /q foo &amp; md foo) and so on a number of times, but Ninja insists on trying to build this final executable at a very early stage.</div>
<div><br></div><div>Any ideas? Â I suppose the problem is caused by one of these three things:</div><div><br></div><div>  Â 1. An error on my part. Â Very likely.</div><div>  Â 2. An error in CMake&#39;s generation of Ninja scripts. Â Not unlikely due to the still fairly immature support for Ninja.</div>
<div>  Â 3. An error in Ninja. Â Highly unlikely as Ninja builds tons and tons of projects all over the world each day and nobody seem to have run into this problem before.</div><div><br></div><div>How do you locate the problem?</div>
<div><br></div><div>Thanks in advance!</div><div><br></div><div><br></div><div>Cheers,</div><div>Mikael</div><div><div>-- Love Thy Frog!</div>
</div>