<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-07-13 12:07 GMT+02:00 René J. V.  Bertin <span dir="ltr"><<a href="mailto:rjvbertin@gmail.com" target="_blank">rjvbertin@gmail.com</a>></span>:</div><div class="gmail_quote">[...]</div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">
><br>
><br>
> The thing I don't understand is that you use CMake 3.8.2 so you should get<br>
> the new behavior.<br>
<br>
</span>Are you sure? I read from the description above that you have to set the policy<br>
explicitly.<br></blockquote><div><br></div><div>You are right,</div><div> it depends on the cmake_minimum_required statement you gave.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Do you know if one can set policies like this from the commandline rather than<br>
through patching each toplevel CMakeLists.txt file? Or can it be set for just a<br>
subdirectory?<br></blockquote><div><br></div><div>From the command line I doubt it.</div><div>However CMake handles a policy stack:</div><div> </div><div> <a href="https://cmake.org/cmake/help/v3.7/command/cmake_policy.html">https://cmake.org/cmake/help/v3.7/command/cmake_policy.html</a></div><div><br></div><div>so that you can enable the NEW behavior of a policy locally in a particular CMakeLists.txt or function etc...</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-"><br>
> However since digikam does a cmake_minimum_required(VERSION 3.0.0) which may<br>
> set the CMP0060 to old.<br>
<br>
</span>Quite possible, I've run into naggles with that with another policy on Mac (25).<br>
It's annoying that this happens with digikam which is a really cumbersome<br>
project (it takes ages just to run make just to confirm that everything has been<br>
built).<br></blockquote><div><br></div><div>Did you try to use ninja generator instead of make ?</div><div>The no-op build is really faster with ninja.</div><div><br></div></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div>
</div></div>