Hi All,
Just a quick note about Policy CMP0043.

When using CMake 3.0 and Qt5.3 these two files will generate the CMake
Warning:
"Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties."

$QTDIR/lib/cmake/Qt5Core/Qt5CoreMacros.cmake
$QTDIR/../Src/qtbase/src/corelib/Qt5CoreMacros.cmake

The lines that do this are:
$QTDIR/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:
 set_property(TARGET ${_target} APPEND PROPERTY COMPILE_DEFINITIONS_RELEASE
QT_NO_DEBUG)
$QTDIR/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:
 set_property(TARGET ${_target} APPEND PROPERTY
COMPILE_DEFINITIONS_RELWITHDEBINFO QT_NO_DEBUG)
$QTDIR/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:
 set_property(TARGET ${_target} APPEND PROPERTY
COMPILE_DEFINITIONS_MINSIZEREL QT_NO_DEBUG)
$QTDIR/../Src/qtbase/src/corelib/Qt5CoreMacros.cmake:
 set_property(TARGET ${_target} APPEND PROPERTY COMPILE_DEFINITIONS_RELEASE
QT_NO_DEBUG)
$QTDIR/../Src/qtbase/src/corelib/Qt5CoreMacros.cmake:
 set_property(TARGET ${_target} APPEND PROPERTY
COMPILE_DEFINITIONS_RELWITHDEBINFO QT_NO_DEBUG)
$QTDIR/../Src/qtbase/src/corelib/Qt5CoreMacros.cmake:
 set_property(TARGET ${_target} APPEND PROPERTY
COMPILE_DEFINITIONS_MINSIZEREL QT_NO_DEBUG)

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.

In windows replace $QTDIR with $QTDIR$ where QTDIR is the path to the QT
binaries.

Andrew

-- 
___________________________________________
Andrew J. P. Maclean

___________________________________________
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to