KDELibsDependencies.cmake problem (Re: KDE/kdebase/runtime/kioslave/smtp)

David Faure faure at kde.org
Tue Oct 17 13:44:21 CEST 2006


On Tuesday 17 October 2006 13:35, Holger Freyther wrote:
> SVN commit 596397 by zecke:
> 
> runtime/kioslave/smtp: Link to QtNetwork to fix link issues on OSX/Darwin
> 
> 
>  M  +1 -1      CMakeLists.txt  
> 
> 
> --- trunk/KDE/kdebase/runtime/kioslave/smtp/CMakeLists.txt #596396:596397
> @@ -90,7 +90,7 @@
>  
>  kde4_add_executable(interactivesmtpserver ${interactivesmtpserver_SRCS})
>  
> -target_link_libraries(interactivesmtpserver  ${KDE4_KDECORE_LIBS} )
> +target_link_libraries(interactivesmtpserver  ${KDE4_KDECORE_LIBS} ${QT_QTNETWORK_LIBRARY} )

Strange; doesn't kdecore link to QtNetwork, and isn't that recorded in the installed share/apps/cmake/modules/KDELibsDependencies.cmake file?
Hmm.... not directly... here's what it says here (on linux):
SET(kdecore_LIB_DEPENDS "/d/qt/4/qt-copy/lib/libQtCore.so;-lpthread;/d/qt/4/qt-copy/lib/libQt3Support.so;/d/qt/4/qt-copy/lib/libQtSvg.so;/d/
qt/4/qt-copy/lib/libQtGui.so;/d/qt/4/qt-copy/lib/libQtDBus.so;-lSM;-lICE;/usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/
libXau.so;/usr/lib/libXdmcp.so;util;/usr/lib/libz.so;/usr/lib/libbz2.so;resolv;dl;/usr/lib/libXtst.so;")

which mentions qt3support, which itself links to libQtNetwork:

ldd /d/qt/4/qt-copy/lib/libQt3Support.so | grep -i network
        libQtNetwork.so.4 => /d/qt/4/qt-copy/lib/libQtNetwork.so.4 (0xb7379000)

How can we fix KDELibsDependencies.cmake to also include indirect dependencies?

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).


More information about the Kde-buildsystem mailing list