<div dir="ltr"><div>Hi All,</div><div>Just a quick note about <span style="color:rgb(255,0,0)">Policy CMP0043.</span></div><div><span style="color:rgb(255,0,0)"><br></span></div><div>When using CMake 3.0 and Qt5.3 these two files will generate the CMake Warning:</div>
<div>"Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties."</div><div><br></div><div>$QTDIR/lib/cmake/Qt5Core/Qt5CoreMacros.cmake</div><div>$QTDIR/../Src/qtbase/src/corelib/Qt5CoreMacros.cmake</div>
<div><br></div><div>The lines that do this are:</div><div>$QTDIR/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:            set_property(TARGET ${_target} APPEND PROPERTY COMPILE_DEFINITIONS_RELEASE QT_NO_DEBUG)</div><div>$QTDIR/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:            set_property(TARGET ${_target} APPEND PROPERTY COMPILE_DEFINITIONS_RELWITHDEBINFO QT_NO_DEBUG)</div>
<div>$QTDIR/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:            set_property(TARGET ${_target} APPEND PROPERTY COMPILE_DEFINITIONS_MINSIZEREL QT_NO_DEBUG)</div><div>$QTDIR/../Src/qtbase/src/corelib/Qt5CoreMacros.cmake:            set_property(TARGET ${_target} APPEND PROPERTY COMPILE_DEFINITIONS_RELEASE QT_NO_DEBUG)</div>
<div>$QTDIR/../Src/qtbase/src/corelib/Qt5CoreMacros.cmake:            set_property(TARGET ${_target} APPEND PROPERTY COMPILE_DEFINITIONS_RELWITHDEBINFO QT_NO_DEBUG)</div><div>$QTDIR/../Src/qtbase/src/corelib/Qt5CoreMacros.cmake:            set_property(TARGET ${_target} APPEND PROPERTY COMPILE_DEFINITIONS_MINSIZEREL QT_NO_DEBUG)</div>
<div><br></div><div>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.</div><div><br></div><div>In windows replace $QTDIR with $QTDIR$ where QTDIR is the path to the QT binaries.</div>
<div><br></div><div>Andrew</div><div><br></div>-- <br>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________
</div>