-make kdebase build with the reduced link interface using target_link_libraries(... LINK_INTERFACE_LIBRARIES ...)

Alex



svn path=/trunk/KDE/kdebase/workspace/; revision=891438
icc-effect-5.14.5
Alexander Neundorf 2008-12-02 02:01:14 +00:00
parent 2d4ef0e6bd
commit 99b4b9dd88
1 changed files with 2 additions and 3 deletions

View File

@ -12,11 +12,11 @@ set(kdecorations_LIB_SRCS
kde4_add_library(kdecorations SHARED ${kdecorations_LIB_SRCS})
target_link_libraries(kdecorations ${KDE4_KDEUI_LIBS} kephal)
target_link_libraries(kdecorations LINK_INTERFACE_LIBRARIES ${KDE4_KDEUI_LIBS})
set_target_properties(kdecorations PROPERTIES
VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
${KDE4_DISABLE_PROPERTY_}LINK_INTERFACE_LIBRARIES "${KDE4_KDEUI_LIBS};"
)
install(TARGETS kdecorations ${INSTALL_TARGETS_DEFAULT_ARGS} )
@ -47,8 +47,7 @@ install(TARGETS kwineffects ${INSTALL_TARGETS_DEFAULT_ARGS})
if(OPENGL_FOUND)
target_link_libraries(kwineffects ${OPENGL_gl_LIBRARY})
set_target_properties(kwineffects PROPERTIES
${KDE4_DISABLE_PROPERTY_}LINK_INTERFACE_LIBRARIES "${OPENGL_gl_LIBRARY};")
target_link_libraries(kwineffects LINK_INTERFACE_LIBRARIES ${OPENGL_gl_LIBRARY})
# -ldl used by OpenGL code
find_library(DL_LIBRARY dl)
if (DL_LIBRARY)