[CMake] Policy Scope Question

Alexander Neundorf a.neundorf-work at gmx.net
Thu Dec 31 07:57:21 EST 2009


On Tuesday 29 December 2009, Richard Wackerbarth wrote:
> I have a question about policy CMP0011.
>
> I have:
> $ cat Call_process_dashboard.cmake
>
> # Call process_dashboard
>
> # These files are maintained by Richard Wackerbarth
> set(maintainer_email_account "Richard")
> set(maintainer_email_domain "NFSNet.org")
>
> IF(COMMAND CMAKE_POLICY)
>   CMAKE_POLICY(SET CMP0011 NEW)
> ENDIF(COMMAND CMAKE_POLICY)
>
> process_dashboard (${project} ${branch})
>
> $
>
> >From my reading of its definition, setting CMP0011 to NEW should suppress
> > all complaints about changes to policy in any subordinate scopes.
>
> Thus shouldn't any policy changes make within process_dashboard() be OK and
> not generate any warning?

What warnings do you get ?

Alex


More information about the CMake mailing list