-also disable _KDE4_TARGET_LINK_INTERFACE_LIBRARIES() and use the renamed LINK_INTERFACE_LIBRARIES target property instead:
set_target_properties(foo PROPERTIES ${KDE4_DISABLE_PROPERTY_}LINK_INTERFACE_LIBRARIES "kdeui;kdecore" ) While this doesn't look very nice, it is completely forward and backward compatible (i.e. cmake 2.4 doesn't complain, cmake 2.6 works, both versions work as soon as the reduced link interface is the default (soon), if somebody uses this with kdelibs which don't have that anymore he will get the reduced interface instead of errors, so all should be ok) This was discussed on kde-buildsystem end of June. Alex CCMAIL: mueller@kde.org svn path=/branches/KDE/4.1/kdebase/workspace/; revision=836133
This commit is contained in:
parent
b9a7592e6b
commit
a002b94e5f
1 changed files with 2 additions and 2 deletions
|
@ -16,10 +16,10 @@ target_link_libraries(kdecorations ${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} )
|
||||
|
||||
_kde4_target_link_interface_libraries(kdecorations "${KDE4_KDEUI_LIBS};")
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
@ -48,12 +48,12 @@ 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};")
|
||||
# -ldl used by OpenGL code
|
||||
find_library(DL_LIBRARY dl)
|
||||
if (DL_LIBRARY)
|
||||
target_link_libraries(kwineffects ${DL_LIBRARY})
|
||||
endif(DL_LIBRARY)
|
||||
_kde4_target_link_interface_libraries(kwineffects "${OPENGL_gl_LIBRARY};")
|
||||
endif(OPENGL_FOUND)
|
||||
if (X11_Xrender_FOUND)
|
||||
target_link_libraries(kwineffects ${X11_Xrender_LIB})
|
||||
|
|
Loading…
Reference in a new issue