<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-07-13 13:01 GMT+02:00 René J. V.  Bertin <span dir="ltr"><<a href="mailto:rjvbertin@gmail.com" target="_blank">rjvbertin@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Eric Noulard wrote:<br>
<br>
> From the command line I doubt it.<br>
<br>
</span>Adding -DCMAKE_POLICY_DEFAULT_<wbr>CMP0060=NEW on the commandline works.<br></blockquote><div><br></div><div>Good to know.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
But whatever the reason, using PNG::PNG works too. Apparently policy 60 doesn't<br>
affect the IMPORTED_LOCATION target property...<br></blockquote><div><br></div><div>I guess this is expected and this is one advantage of imported library vs plain path to lib.</div><div> </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> Did you try to use ninja generator instead of make ?<br>
> The no-op build is really faster with ninja.<br>
<br>
</span>I compared single full builds with ninja and make yesterday; with ninja it was<br>
actually (a bit) slower and required more resources (including a larger build<br>
directory). </blockquote><div><br></div><div>Do run make with parallel build?</div><div><br></div><div>I was speaking of a no-op build but for full build it may depends on your main memory amount.</div><div>Ninja is parallel by default and in some case if you have many core (like 8 or more) but</div><div>not so much memory, ninja will generate as many compile/link job as you have core (+2 I think)</div><div>which may be too much makes your system swap.</div><div><br></div><div>In that case you can control it yourself using</div><div>ninja -j <numberOfJob></div><div>or</div><div>ninja -l <acceptedLoad></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My main gripe with it is that you cannot simply launch a partial<br>
build from a subdirectory.<br></blockquote><div><br></div><div>Ninja generator is different is it not directory-based because you have a single build.ninja file.</div><div>However you can easily build any (sub)directory of your project using:</div><div><br></div><div>ninja Path/To/Dir/all</div><div><br></div></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div>
</div></div>