[vtk-developers] [CMake] CMake 3.0, Qt5.3 and Policy CMP0043.

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Wed Jun 11 00:52:43 EDT 2014


Thanks Matt.
I just +1 the issue.
Jc


On Tue, Jun 10, 2014 at 7:39 PM, <Matt.Bolger at csiro.au> wrote:

>  I raised an issue in the Qt bug tracker for this
> https://bugreports.qt-project.org/browse/QTBUG-39457 - everyone should go
> vote for it J
>
>
>
> Matt
>
>
>
> *From:* CMake [mailto:cmake-bounces at cmake.org] *On Behalf Of *Andrew
> Maclean
> *Sent:* Wednesday, 11 June 2014 9:20 AM
> *To:* VTK Developers; vtk; cmake at cmake.org
> *Subject:* [CMake] CMake 3.0, Qt5.3 and Policy CMP0043.
>
>
>
> 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
>



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20140611/cd1792b0/attachment-0002.html>


More information about the vtk-developers mailing list