[CMake] Cannot set CMP0022 to OLD

Andreas Pakulat apaku at gmx.de
Sat Dec 14 20:25:41 EST 2013


Hi,

On Sat, Dec 14, 2013 at 2:58 PM, Stephen Kelly <steveire at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131215/8ee84c9b/attachment.htm>


More information about the CMake mailing list