[CMake] CMP0071

Craig Scott craig.scott at crascit.com
Sun Oct 8 16:30:16 EDT 2017


On Sun, Oct 8, 2017 at 1:13 AM, Konstantin Tokarev <annulen at yandex.ru>
wrote:

>
>
> 07.10.2017, 14:18, "Konstantin Tokarev" <annulen at yandex.ru>:
> > Hello,
> >
> > I've just learned about CMP0071 introduced in upcoming 3.10 release.
> >
> > Is it possible to replace new policy with new global variable/per-target
> property to avoid need setting of SKIP_AUTOMOC OFF on each generated file
> separately?
> >
> > Thanks.
>
> Also, I've found following issue: setting CMP0071 to OLD in the top-level
> project does not suppress warnings, unless I set CMP0071 to OLD in each
> subdirectory. cmake_policy(GET CMP0071 var) in subdir's CMakeLists.txt
> returns OLD, but warning is suppressed only if I set it to OLD once again.
>

Just a thought, do you have calls to cmake_minimum_required(VERSION ...) or
cmake_policy(VERSION ...) in your subdirs? These reset the policy settings
to match the specified version.

-- 
Craig Scott
Melbourne, Australia
https://crascit.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20171009/d3139fc5/attachment.html>


More information about the CMake mailing list