diff --git a/CMakeLists.txt b/CMakeLists.txt index 277c9fc43..08dd581e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,8 +106,11 @@ endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND) kde4_add_library(plasma SHARED ${plasma_LIB_SRCS}) target_link_libraries(plasma ${KDE4_KIO_LIBS} ${KDE4_KFILE_LIBS} ${KDE4_KNEWSTUFF2_LIBS} - ${QT_QTUITOOLS_LIBRARY} ${QT_QTWEBKIT_LIBRARY} ${DL_LIBRARY} + ${QT_QTUITOOLS_LIBRARY} ${QT_QTWEBKIT_LIBRARY} ${KDE4_THREADWEAVER_LIBRARIES} ${KDE4_SOLID_LIBS} ${X11_LIBRARIES}) +if(${DL_LIBRARY}) +target_link_libraries(plasma ${DL_LIBRARY}) +endif(${DL_LIBRARY}) if(QT_QTOPENGL_FOUND AND OPENGL_FOUND) target_link_libraries(plasma ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY})