[CMake] Policy Scope Question

Richard Wackerbarth richard at nfsnet.org
Tue Dec 29 16:34:22 EST 2009


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?

Richard


More information about the CMake mailing list