<html><body>
<p><font size="2" face="sans-serif">Then it is odd that it does not work, the warning is given during generation time and I have tested to print the status of the 0028 policy at all points where the projects that get the warning has their add_library/add_executable command called, as well as at the end of their respective CMakeLists.txt files and it remains in the state OLD throughout. </font><br>
<font size="2" face="sans-serif">At which point is the state of the policy stored when it comes to generation time? I can see that it works when I construct a minimal example, so knowing when it's state is 'used' would greaty help in solving the issue or creating a minimal example that showcases the problem.</font><br>
<br>
<font size="2" face="sans-serif">Regards,</font><br>
<font size="2" face="sans-serif">Pierre Andersson</font><br>
<br>
<br>
<img width="16" height="16" src="cid:1__=4EBBF781DFDA1B168f9e8a93d@atlascopco.com" border="0" alt="Inactive hide details for Nils Gladitz ---2014-07-11 14:32:03---On 07/11/2014 01:33 PM, pierre.andersson@se.atlascopco.com wrot"><font size="2" color="#424282" face="sans-serif">Nils Gladitz ---2014-07-11 14:32:03---On 07/11/2014 01:33 PM, pierre.andersson@se.atlascopco.com wrote: > Thanks for the response. None of</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From:      </font><font size="1" face="sans-serif">Nils Gladitz <nilsgladitz@gmail.com></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">pierre.andersson@se.atlascopco.com</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Cc:        </font><font size="1" face="sans-serif">cmake@cmake.org</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date:      </font><font size="1" face="sans-serif">2014-07-11 14:32</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject:   </font><font size="1" face="sans-serif">Re: [CMake] Setting Policy CMP0028</font><br>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<tt><font size="2">On 07/11/2014 01:33 PM, pierre.andersson@se.atlascopco.com wrote:<br>
> Thanks for the response. None of those are called in the CMakeLists.txt<br>
> file that the warning is issued for, they are both called in a file<br>
> above that one  in the build tree but said file also sets the CML0028<br>
> policy afterwards. Is it possible that a call to cmake_minimum_required<br>
> resets the policies even for CMakeLists.txt that are not below it in the<br>
> build system tree?<br>
<br>
You can not change policies for the parent; only for the current and <br>
subdirectories.<br>
<br>
It might help if you could create a minimal, selfcontained test case to <br>
reproduce and debug the issue.<br>
<br>
Nils<br>
<br>
</font></tt><br>
</body></html>