<div dir="ltr"><div>Hi Scott.<br><br>Policy state is changed by explicit calls to cmake_policy() and implicitly by calls to cmake_minimum_required(). So you need to set the policy to the setting you want whenever each of these occurs (or modify them so that they set the policy the way you want it).<br><br></div>The documentation of cmake_policy() has details about this, including how the policy stack works. You should be able to find more info there.<br><br>Petr<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 11, 2014 at 10:13 AM, Scott Aron Bloom <span dir="ltr"><<a href="mailto:scott.bloom@onshorecs.com" target="_blank">scott.bloom@onshorecs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Im in the process of converting a CMake 2.X project to 3.X.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I cant for the life of me, find a deterministic way to properly SET the policy so I don’t get the
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">  Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.<u></u><u></u></p>
<p class="MsoNormal">  Run "cmake --help-policy CMP0043" for policy details.  Use the cmake_policy<u></u><u></u></p>
<p class="MsoNormal">  command to set the policy and suppress this warning.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Should it be in each individual CMakeList.txt file?  Or just the top one?<br>
<br>
to be honest, on my companies main project, I finally got it fixed, by putting it just about everywhere, but this is very frustrating.<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Scott<u></u><u></u></p>
</font></span></div>
</div>

<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</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>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br></blockquote></div><br></div>