Use private linking for exported CMake targets.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 158b6e1152)
v3.5.13-sru
Slávek Banko 4 years ago
parent d336392f8f
commit d37bb843d1
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -90,6 +90,7 @@ set( ${target}_SRCS
tde_add_library( ${target} SHARED AUTOMOC
SOURCES ${${target}_SRCS}
VERSION 0.0.0
LINK kdeui-shared kabc-shared kparts-shared
LINK kdeui-shared kparts-shared
LINK_PRIVATE kabc-shared
DESTINATION ${LIB_INSTALL_DIR}
)

@ -129,8 +129,9 @@ tde_add_library( ${target} SHARED AUTOMOC
SOURCES ${${target}_SRCS}
VERSION 4.2.0
EMBED kdecorenetwork-static
LINK ltdlc-static ${KDESVGICONS} DCOP-shared kdefx-shared ${ZLIB_LIBRARIES} ${LIBIDN_LIBRARIES} ${XCOMPOSITE_LIBRARIES} ICE SM
${LIBBFD_LIBRARIES} util
LINK DCOP-shared kdefx-shared ICE SM ${ZLIB_LIBRARIES}
LINK_PRIVATE ltdlc-static ${KDESVGICONS} ${XCOMPOSITE_LIBRARIES}
${LIBIDN_LIBRARIES} ${LIBBFD_LIBRARIES} ${LIB_UTIL}
DESTINATION ${LIB_INSTALL_DIR}
)

@ -42,7 +42,8 @@ set( ${target}_SRCS
tde_add_library( ${target} SHARED
SOURCES ${${target}_SRCS}
VERSION 4.2.0
LINK kdecore-shared ${LIB_UTIL}
LINK kdecore-shared
LINK_PRIVATE ${LIB_UTIL}
DESTINATION ${LIB_INSTALL_DIR}
)

@ -148,7 +148,8 @@ set( ${target}_SRCS
tde_add_library( ${target} SHARED AUTOMOC
SOURCES ${${target}_SRCS}
VERSION 4.2.0
LINK kdecore-shared ${FREETYPE_LIBRARIES} ${FONTCONFIG_LIBRARIES} ${XEXT_LIBRARIES}
LINK kdecore-shared
LINK_PRIVATE ${FREETYPE_LIBRARIES} ${FONTCONFIG_LIBRARIES} ${XEXT_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)

@ -88,7 +88,8 @@ tde_add_library( ${target} SHARED AUTOMOC
VERSION 4.2.0
LINK ${VSCRIPT} kjava-static kjs_html-static khtmldom-static khtmlcss-static
khtmlhtml-static khtmlxml-static khtmlrender-static khtmlmisc-static
kutils-shared kdeprint-shared kjs-shared ${JPEG_LIBRARIES}
kutils-shared kdeprint-shared
LINK_PRIVATE kjs-shared ${JPEG_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)

@ -40,7 +40,7 @@ set( ${target}_SRCS
tde_add_executable( ${target}
SOURCES ${${target}_SRCS}
LINK kICE-static ltdlc-static kparts-shared ${XFT_LIBRARIES}
LINK kICE-static ltdlc-static kparts-shared ${FONTCONFIG_LIBRARIES} ${XFT_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)

@ -66,6 +66,7 @@ tde_add_library( ${target} SHARED
SOURCES ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp
VERSION 4.2.0
EMBED kssl-static kiocore-static ksycoca-static kbookmarks-static kfile-static
LINK ltdlc-static kdeui-shared kdesu-shared kwalletclient-shared ${ACL_LIBRARIES}
LINK kdeui-shared kwalletclient-shared
LINK_PRIVATE ltdlc-static kdesu-shared ${ACL_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)

@ -45,7 +45,6 @@ set( ${target}_SRCS
tde_add_kpart( ${target} AUTOMOC
SOURCES ${${target}_SRCS}
LINK kio-shared
LINK kio-shared ${ACL_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -61,6 +61,7 @@ tde_add_lut( keywords.table lexer.lut.h lexer.cpp )
tde_add_library( ${target} SHARED
SOURCES ${${target}_SRCS}
VERSION 1.2.0
LINK kdecore-shared ${LIBPCRE_LIBRARIES}
LINK kdecore-shared
LINK_PRIVATE ${LIBPCRE_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)

@ -46,6 +46,7 @@ set( ${target}_SRCS
tde_add_library( ${target} SHARED
SOURCES ${${target}_SRCS}
VERSION 0.0.95
LINK kdecore-shared ${ALSA_LIBRARIES}
LINK kdecore-shared
LINK_PRIVATE ${ALSA_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)

Loading…
Cancel
Save