fix build issue when OpenGL is not present on the user system

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=733932
This commit is contained in:
Anne-Marie Mahfouf 2007-11-07 16:08:11 +00:00
parent 63aebf28ea
commit 91aec876c1

View File

@ -77,7 +77,11 @@ endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
kde4_add_library(plasma SHARED ${plasma_LIB_SRCS}) kde4_add_library(plasma SHARED ${plasma_LIB_SRCS})
target_link_libraries(plasma ${KDE4_KIO_LIBS} ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY} ${QT_QTUITOOLS_LIBRARY}) target_link_libraries(plasma ${KDE4_KIO_LIBS} ${QT_QTOPENGL_LIBRARY} ${QT_QTUITOOLS_LIBRARY})
if(OPENGL_FOUND)
target_link_libraries(plasma ${OPENGL_gl_LIBRARY})
endif(OPENGL_FOUND)
set_target_properties(plasma PROPERTIES VERSION 1.0.0 SOVERSION 1) set_target_properties(plasma PROPERTIES VERSION 1.0.0 SOVERSION 1)
install(TARGETS plasma DESTINATION ${LIB_INSTALL_DIR}) install(TARGETS plasma DESTINATION ${LIB_INSTALL_DIR})