<div dir="ltr"><div><div>Thanks Matt.<br></div>I just +1 the issue.<br></div>Jc<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 10, 2014 at 7:39 PM,  <span dir="ltr"><<a href="mailto:Matt.Bolger@csiro.au" target="_blank">Matt.Bolger@csiro.au</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-AU">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I raised an issue in the Qt bug tracker for this
<a href="https://bugreports.qt-project.org/browse/QTBUG-39457" target="_blank">https://bugreports.qt-project.org/browse/QTBUG-39457</a> - everyone should go vote for it
</span><span style="font-size:11.0pt;font-family:Wingdings;color:#1f497d">J</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Matt<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> CMake [mailto:<a href="mailto:cmake-bounces@cmake.org" target="_blank">cmake-bounces@cmake.org</a>]
<b>On Behalf Of </b>Andrew Maclean<br>
<b>Sent:</b> Wednesday, 11 June 2014 9:20 AM<br>
<b>To:</b> VTK Developers; vtk; <a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a><br>
<b>Subject:</b> [CMake] CMake 3.0, Qt5.3 and Policy CMP0043.<u></u><u></u></span></p>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Hi All,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Just a quick note about <span style="color:red">Policy CMP0043.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">When using CMake 3.0 and Qt5.3 these two files will generate the CMake Warning:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">"Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties."<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">$QTDIR/lib/cmake/Qt5Core/Qt5CoreMacros.cmake<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">$QTDIR/../Src/qtbase/src/corelib/Qt5CoreMacros.cmake<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The lines that do this are:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">$QTDIR/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:            set_property(TARGET ${_target} APPEND PROPERTY COMPILE_DEFINITIONS_RELEASE QT_NO_DEBUG)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">$QTDIR/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:            set_property(TARGET ${_target} APPEND PROPERTY COMPILE_DEFINITIONS_RELWITHDEBINFO QT_NO_DEBUG)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">$QTDIR/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:            set_property(TARGET ${_target} APPEND PROPERTY COMPILE_DEFINITIONS_MINSIZEREL QT_NO_DEBUG)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">$QTDIR/../Src/qtbase/src/corelib/Qt5CoreMacros.cmake:            set_property(TARGET ${_target} APPEND PROPERTY COMPILE_DEFINITIONS_RELEASE QT_NO_DEBUG)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">$QTDIR/../Src/qtbase/src/corelib/Qt5CoreMacros.cmake:            set_property(TARGET ${_target} APPEND PROPERTY COMPILE_DEFINITIONS_RELWITHDEBINFO QT_NO_DEBUG)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">$QTDIR/../Src/qtbase/src/corelib/Qt5CoreMacros.cmake:            set_property(TARGET ${_target} APPEND PROPERTY COMPILE_DEFINITIONS_MINSIZEREL QT_NO_DEBUG)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">So if you have not set COMPILE_DEFINITIONS_<Config> anywhere in your CMake configuration files, then this is the most likely source of the warnings.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">In windows replace $QTDIR with $QTDIR$ where QTDIR is the path to the QT binaries.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Andrew<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <br>
___________________________________________<br>
Andrew J. P. Maclean<br>
<br>
___________________________________________ <u></u><u></u></p>
</div>
</div></div></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://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br>
</div>