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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel