If you do "cmake_minimum_required" to something less than 2.8, then that call will reset any policies you have set at the outer level... So, to really use a NEW value for policy CMP0011, you have to do it *after* the last cmake_minimum_required or update your min required to 2.8...<br>
<br><div><br><div class="gmail_quote">On Thu, Dec 31, 2009 at 11:30 AM, Richard Wackerbarth <span dir="ltr"><<a href="mailto:richard@nfsnet.org">richard@nfsnet.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Checking Project CMake/2_8.<br>
Running Dashboard for CMake/2_8.<br>
Problem opening /proc/cpuinfo<br>
Problem opening /proc/cpuinfo<br>
Problem opening /proc/cpuinfo<br>
CMake Warning (dev) at Dashboards/Scripts/Possibly_Run_Dashboard.cmake:14 (include):<br>
Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH<br>
and POP. Run "cmake --help-policy CMP0011" for policy details. Use the<br>
cmake_policy command to set the policy and suppress this warning.<br>
<br>
The included script<br>
<br>
/home/dashboard/Dashboards/Scripts/Run_Dashboard.cmake<br>
<br>
affects policy settings. CMake is implying the NO_POLICY_SCOPE option for<br>
compatibility, so the effects are applied to the including context.<br>
Call Stack (most recent call first):<br>
Dashboards/Scripts/GenericFunctions.cmake:77 (include)<br>
Dashboards/Scripts/Call_process_dashboard.cmake:11 (process_dashboard)<br>
Dashboards/Scripts/GenericFunctions.cmake:19 (include)<br>
Dashboards/Scripts/AutoStart.cmake:21 (do_all)<br>
This warning is for project developers. Use -Wno-dev to suppress it.<br>
<br>
CMake Warning (dev) at Dashboards/Scripts/GenericFunctions.cmake:77 (include):<br>
Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH<br>
and POP. Run "cmake --help-policy CMP0011" for policy details. Use the<br>
cmake_policy command to set the policy and suppress this warning.<br>
<br>
The included script<br>
<br>
/home/dashboard/Dashboards/Scripts/Possibly_Run_Dashboard.cmake<br>
<br>
affects policy settings. CMake is implying the NO_POLICY_SCOPE option for<br>
compatibility, so the effects are applied to the including context.<br>
Call Stack (most recent call first):<br>
Dashboards/Scripts/Call_process_dashboard.cmake:11 (process_dashboard)<br>
Dashboards/Scripts/GenericFunctions.cmake:19 (include)<br>
Dashboards/Scripts/AutoStart.cmake:21 (do_all)<br>
This warning is for project developers. Use -Wno-dev to suppress it.<br>
<br>
Checking Project CMake/2_9.<br>
<div><div></div><div class="h5"><br>
On Dec 31, 2009, at 6:57 AM, Alexander Neundorf wrote:<br>
<br>
> On Tuesday 29 December 2009, Richard Wackerbarth wrote:<br>
>> I have a question about policy CMP0011.<br>
>><br>
>> I have:<br>
>> $ cat Call_process_dashboard.cmake<br>
>><br>
>> # Call process_dashboard<br>
>><br>
>> # These files are maintained by Richard Wackerbarth<br>
>> set(maintainer_email_account "Richard")<br>
>> set(maintainer_email_domain "NFSNet.org")<br>
>><br>
>> IF(COMMAND CMAKE_POLICY)<br>
>> CMAKE_POLICY(SET CMP0011 NEW)<br>
>> ENDIF(COMMAND CMAKE_POLICY)<br>
>><br>
>> process_dashboard (${project} ${branch})<br>
>><br>
>> $<br>
>><br>
>>> From my reading of its definition, setting CMP0011 to NEW should suppress<br>
>>> all complaints about changes to policy in any subordinate scopes.<br>
>><br>
>> Thus shouldn't any policy changes make within process_dashboard() be OK and<br>
>> not generate any warning?<br>
><br>
> What warnings do you get ?<br>
><br>
> Alex<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>