<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Sep 22, 2014 at 5:40 PM, Bill Hoffman <span dir="ltr"><<a href="mailto:bill.hoffman@kitware.com" target="_blank">bill.hoffman@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 9/22/2014 1:45 AM, Cristian Adam wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On QNX side, thins are not as good. First, in order to compile<br>
the project I had to apply this patch [1], provided by Stephen Kelly.<br>
<br>
And now the "fail" part for QNX, the second subsequent build<br>
doesn't say "ninja: no work to do" instead it starts compiling,<br>
taking as much as 70% of the original clean build time :(<br>
<br>
Now I don't know who to blame cmake or ninja?<br>
</blockquote></span>
There is no way to really tell what is going on from what you have posted.  What about the third time you run ninja does it have nothing todo?<br></blockquote><div><br></div><div>For the 3rd time, 4th time etc. same thing happens. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
You can run:<br>
 ninja -d explain<br>
to see why ninja wants to run things.  Sounds like some input files are getting changed during your build for QNX for some reason.<br>
<br>
-Bill<br>
<br></blockquote></div><br></div><div class="gmail_extra">"-d explain" parameter gives for lots of files (probably all) in the project (headers, source files, object files, static libraries, executables) <br>"is dirty"<br><br></div><div class="gmail_extra">This means that ninja's method of detecting if a file has been changed doesn't quite work for QNX.  Or is this being set by cmake?<br></div><div class="gmail_extra">Some compiler flag which needs a -Wc, or -Wp prefix?<br><br>Cheers,<br>Cristian.<br></div><div class="gmail_extra"><br></div></div>