From adf75bb0eb7474b9f2c589658146558a9f40e51a Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Tue, 4 Nov 2008 08:13:55 +0000 Subject: [PATCH] Minor fix svn path=/trunk/KDE/kdelibs/; revision=879850 --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f5a2ba6da..cd43c8782 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -137,7 +137,12 @@ kde4_add_library(plasma SHARED ${plasma_LIB_SRCS}) target_link_libraries(plasma ${KDE4_KIO_LIBS} ${KDE4_KFILE_LIBS} knewstuff2 ${QT_QTUITOOLS_LIBRARY} ${QT_QTWEBKIT_LIBRARY} - threadweaver ${KDE4_SOLID_LIBS} ${X11_LIBRARIES}) + threadweaver ${KDE4_SOLID_LIBS} ) +if(X11_FOUND) + target_link_libraries(plasma ${X11_LIBRARIES}) +endif(X11_FOUND) + + if(DL_LIBRARY) target_link_libraries(plasma ${DL_LIBRARY}) endif(DL_LIBRARY)