[cmake-developers] CMP0071
Sebastian Holtermann
seblist at xwmw.org
Tue Sep 26 11:15:10 EDT 2017
On Dienstag, 26. September 2017 11:04:30 CEST Brad King wrote:
> On 09/26/2017 09:32 AM, clinton at elemtech.com wrote:
> > CMake Warning (dev) in claro/navigation5/CMakeLists.txt:
> > Policy CMP0071 is not set: Let AUTOMOC and AUTOUIC process GENERATED
> > files. Run "cmake --help-policy CMP0071" for policy details. Use the
> > cmake_policy command to set the policy and suppress this warning.
> >
> > AUTOMOC: Ignoring GENERATED header file(s):
> >
> > "/path/to/ui_SomeFile.h"
> > "/path/to/qrc_AnotherFile.cpp"
> >
> > Those ui_* and qrc_* files do not require processing by moc.
> > In this case, I was using qt5_wrap_ui() and qt5_add_resources().
> >
> > Is there a way to not print out that policy warning
>
> Clinton, you can set the SKIP_AUTOGEN source file property on them:
>
> https://cmake.org/cmake/help/v3.9/prop_sf/SKIP_AUTOGEN.html
>
> Sebastian, please revise the policy warning to mention the
> alternatives.
"cmake --help-policy CMP0071" already mentions SKIP_AUTOMOC.
Should the warning mention SKIP_AUTOMOC as well?
-Sebastian
More information about the cmake-developers
mailing list