<html><body>
<p><font size="2" face="sans-serif">Just to update. I managed to solve the issue by adding this line:</font><br>
<br>
<font size="2" color="#000080" face="Monospace">cmake_policy</font><font size="2" color="#2F2F2F" face="Monospace">(</font><font size="2" color="#7F604F" face="Monospace">SET</font><font size="2" color="#2F2F2F" face="Monospace"> CMP0028 </font><font size="2" color="#7F604F" face="Monospace">OLD</font><font size="2" color="#2F2F2F" face="Monospace">)</font><br>
<br>
<font size="2" face="sans-serif">directly to the macro that ends up calling the add_library/add_executable commands. Thank you for the help.</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__=4EBBF786DFDF1E6E8f9e8a93d@atlascopco.com" border="0" alt="Inactive hide details for Nils Gladitz ---2014-07-11 15:47:19---On 07/11/2014 03:33 PM, pierre.andersson@se.atlascopco.com wrot"><font size="2" color="#424282" face="sans-serif">Nils Gladitz ---2014-07-11 15:47:19---On 07/11/2014 03:33 PM, pierre.andersson@se.atlascopco.com wrote: > Then it is odd that it does not</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 15:47</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 03:33 PM, pierre.andersson@se.atlascopco.com wrote:<br>
> Then it is odd that it does not work, the warning is given during<br>
> generation time and I have tested to print the status of the 0028 policy<br>
> at all points where the projects that get the warning has their<br>
> add_library/add_executable command called, as well as at the end of<br>
> their respective CMakeLists.txt files and it remains in the state OLD<br>
> throughout.<br>
> At which point is the state of the policy stored when it comes to<br>
> generation time? I can see that it works when I construct a minimal<br>
> example, so knowing when it's state is 'used' would greaty help in<br>
> solving the issue or creating a minimal example that showcases the problem.<br>
<br>
Given that the warning is at generation time I think it should be the <br>
state of the policy at the end of the CMakeLists.txt that defines the <br>
target (add_library/add_executable).<br>
<br>
Nils<br>
<br>
</font></tt><br>
</body></html>