<div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 14, 2013 at 2:58 PM, Stephen Kelly <span dir="ltr">&lt;<a href="mailto:steveire@gmail.com" target="_blank">steveire@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Andreas Pakulat wrote:<br>
<br>
&gt; Anyway, I&#39;ve now stripped it down as much as I can (without diving into<br>
&gt; the wilderness of FindKDE4Internal) and also added the observations I&#39;ve<br>
&gt; made while stripping it. So its definetly somewhat related to the magics<br>
&gt; that the KDE4 module does.<br>
<br>
</div>It&#39;s related to the scope of the policy and the context of the macro, which<br>
is a bit counterintuitive.<br>
<br>
Your options are:<br>
<br>
1)<br>
Set the policy in KDE4Internal.cmake, like the rest of the policies.<br>
<br>
2)<br>
Apply a patch equivalent to:<br>
<br>
 diff --git a/CMakeLists.txt b/CMakeLists.txt<br>
 index b93f190..134181c 100644<br>
 --- a/CMakeLists.txt<br>
 +++ b/CMakeLists.txt<br>
 @@ -5,6 +5,7 @@ cmake_minimum_required(VERSION 2.8)<br>
  project(KDevPlatform)<br>
  cmake_policy(SET CMP0022 OLD)<br>
  find_package(KDE4 4.7.0 REQUIRED)<br>
 +include(KDE4Macros NO_POLICY_SCOPE)<br>
<div class="HOEnZb"><div class="h5"></div></div></blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks for taking the time to analyze this and enlighten me about the options. I&#39;ll see what the KDevelop team prefers.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Andreas</div></div>