cmake-2.12.1 + kde*-4.12

Rohan Garg rohan at kde.org
Wed Nov 20 17:59:47 UTC 2013


On Tuesday 19 November 2013 20:41:21 Treeve Jelbert wrote:
> I have cmake-2.12.1 installed and use to build frameworks.
> 
> When I use it to build  kde*-4.12 I get lots of warnings of the type:
> 
> -- Configuring done
> CMake Warning (dev) in kdecore/CMakeLists.txt:
>   Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
>   interface.  Run "cmake --help-policy CMP0022" for policy details.  Use the
> cmake_policy command to set the policy and suppress this warning.
> 
>   Target "kdecore" has an INTERFACE_LINK_LIBRARIES property which differs
>   from its LINK_INTERFACE_LIBRARIES properties.
> 
>   INTERFACE_LINK_LIBRARIES:
> 
>     Qt4::QtCore;-
> lpthread;Qt4::QtNetwork;Qt4::QtDBus;Qt4::QtXml;/usr/lib/libz.so;/usr/lib/lib
> bz2.so;/usr/lib/liblzma.so;resolv;-
> lpthread;/usr/lib/libfam.so;Qt4::QtDBus;Qt4::QtCore;-lpthread
> 
>   LINK_INTERFACE_LIBRARIES:
> 
>     Qt4::QtDBus;Qt4::QtCore;-lpthread
> 
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 

I faced a similar warning with libkdcraw, which uses the KDE4_ADD_LIBRARY 
macro ( which calls set_target_properties(${_target_NAME} PROPERTIES 
LINK_INTERFACE_LIBRARIES "" ) )

I was told that LINK_INTERFACE_LIBRARIES is the old property and 
INTERFACE_LINK_LIBRARIES is the new one. 

It was suggested on #kde-devel that it would be better to just suppress the 
warning.

Hope that helps.

Cheers
Rohan Garg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20131120/c8ad6da3/attachment.sig>


More information about the Kde-frameworks-devel mailing list