On Sun, Oct 8, 2017 at 1:13 AM, Konstantin Tokarev <[email protected]>
wrote:

>
>
> 07.10.2017, 14:18, "Konstantin Tokarev" <[email protected]>:
> > 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
-- 

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://public.kitware.com/mailman/listinfo/cmake

Reply via email to