[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Cannot set CMP0022 to OLD
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2013-12-15 1:25:41
Message-ID: CAExHGmTetU4VrvD3NOMpFUmBWuHqLWxbT1Ghh185yQkgmct=VQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

On Sat, Dec 14, 2013 at 2:58 PM, Stephen Kelly <steveire@gmail.com> wrote:

> Andreas Pakulat wrote:
>
> > Anyway, I've now stripped it down as much as I can (without diving into
> > the wilderness of FindKDE4Internal) and also added the observations I've
> > made while stripping it. So its definetly somewhat related to the magics
> > that the KDE4 module does.
>
> It's related to the scope of the policy and the context of the macro, which
> is a bit counterintuitive.
>
> Your options are:
>
> 1)
> Set the policy in KDE4Internal.cmake, like the rest of the policies.
>
> 2)
> Apply a patch equivalent to:
>
>  diff --git a/CMakeLists.txt b/CMakeLists.txt
>  index b93f190..134181c 100644
>  --- a/CMakeLists.txt
>  +++ b/CMakeLists.txt
>  @@ -5,6 +5,7 @@ cmake_minimum_required(VERSION 2.8)
>   project(KDevPlatform)
>   cmake_policy(SET CMP0022 OLD)
>   find_package(KDE4 4.7.0 REQUIRED)
>  +include(KDE4Macros NO_POLICY_SCOPE)
>

Thanks for taking the time to analyze this and enlighten me about the
options. I'll see what the KDevelop team prefers.

Andreas

[Attachment #5 (text/html)]

<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>



--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic