summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-12 03:56:33 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-12 15:30:03 +0200
commitfc2c3c9ca027cbccbd47866704f6e3469161a9b3 (patch)
treec6607662929e0a6fa808912fe66a48d81b6c7b26
parent412f55e671929ff8b9db41d6c3372306b05679e7 (diff)
downloadtdelibs-fc2c3c9ca027cbccbd47866704f6e3469161a9b3.tar.gz
tdelibs-fc2c3c9ca027cbccbd47866704f6e3469161a9b3.zip
Use private linking for exported CMake targets.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 158b6e1152413e4fa973b70b7469bb1f256a1f38)
-rw-r--r--interfaces/tdetexteditor/CMakeLists.txt3
-rw-r--r--kjs/CMakeLists.txt3
-rw-r--r--libtdemid/CMakeLists.txt3
-rw-r--r--tdecore/CMakeLists.txt6
-rw-r--r--tdehtml/CMakeLists.txt3
-rw-r--r--tdeinit/CMakeLists.txt2
-rw-r--r--tdeio/CMakeLists.txt3
-rw-r--r--tdeioslave/file/CMakeLists.txt3
-rw-r--r--tdesu/CMakeLists.txt3
-rw-r--r--tdeui/CMakeLists.txt3
10 files changed, 19 insertions, 13 deletions
diff --git a/interfaces/tdetexteditor/CMakeLists.txt b/interfaces/tdetexteditor/CMakeLists.txt
index 5438c85e1..1849af27e 100644
--- a/interfaces/tdetexteditor/CMakeLists.txt
+++ b/interfaces/tdetexteditor/CMakeLists.txt
@@ -98,6 +98,7 @@ set( ${target}_SRCS
tde_add_library( ${target} SHARED AUTOMOC
SOURCES ${${target}_SRCS}
VERSION 0.0.0
- LINK tdeui-shared tdeabc-shared tdeparts-shared
+ LINK tdeui-shared tdeparts-shared
+ LINK_PRIVATE tdeabc-shared
DESTINATION ${LIB_INSTALL_DIR}
)
diff --git a/kjs/CMakeLists.txt b/kjs/CMakeLists.txt
index e8530ea58..8e9b16849 100644
--- a/kjs/CMakeLists.txt
+++ b/kjs/CMakeLists.txt
@@ -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 tdecore-shared ${LIBPCRE_LIBRARIES}
+ LINK tdecore-shared
+ LINK_PRIVATE ${LIBPCRE_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)
diff --git a/libtdemid/CMakeLists.txt b/libtdemid/CMakeLists.txt
index f1fb5c7e3..21338aac1 100644
--- a/libtdemid/CMakeLists.txt
+++ b/libtdemid/CMakeLists.txt
@@ -46,6 +46,7 @@ set( ${target}_SRCS
tde_add_library( ${target} SHARED
SOURCES ${${target}_SRCS}
VERSION 0.0.95
- LINK tdecore-shared ${ALSA_LIBRARIES}
+ LINK tdecore-shared
+ LINK_PRIVATE ${ALSA_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)
diff --git a/tdecore/CMakeLists.txt b/tdecore/CMakeLists.txt
index c96f5c905..2b2d88f01 100644
--- a/tdecore/CMakeLists.txt
+++ b/tdecore/CMakeLists.txt
@@ -141,9 +141,9 @@ tde_add_library( ${target} SHARED AUTOMOC
SOURCES ${${target}_SRCS}
VERSION 14.0.0
EMBED tdecorenetwork-static ${TDEHW_LIB}
- LINK ltdlc-static ${KDESVGICONS} DCOP-shared tdefx-shared ${ZLIB_LIBRARIES}
- ${LIBIDN_LIBRARIES} ${XCOMPOSITE_LIBRARIES} ICE SM ${GAMIN_LIBRARIES}
- ${LIBBFD_LIBRARIES} ${LIB_UTIL}
+ LINK DCOP-shared tdefx-shared ICE SM ${ZLIB_LIBRARIES}
+ LINK_PRIVATE ltdlc-static ${KDESVGICONS} ${XCOMPOSITE_LIBRARIES}
+ ${LIBIDN_LIBRARIES} ${LIBBFD_LIBRARIES} ${LIB_UTIL} ${GAMIN_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)
diff --git a/tdehtml/CMakeLists.txt b/tdehtml/CMakeLists.txt
index 8c50d736c..f133e5f6c 100644
--- a/tdehtml/CMakeLists.txt
+++ b/tdehtml/CMakeLists.txt
@@ -95,7 +95,8 @@ tde_add_library( ${target} SHARED AUTOMOC
VERSION 14.0.0
LINK ${VSCRIPT} kjava-static kjs_html-static tdehtmldom-static tdehtmlcss-static
tdehtmlhtml-static tdehtmlxml-static tdehtmlrender-static tdehtmlmisc-static
- tdeutils-shared tdeprint-shared kjs-shared ${JPEG_LIBRARIES}
+ tdeutils-shared tdeprint-shared
+ LINK_PRIVATE kjs-shared ${JPEG_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)
diff --git a/tdeinit/CMakeLists.txt b/tdeinit/CMakeLists.txt
index f6347899b..f094e54ab 100644
--- a/tdeinit/CMakeLists.txt
+++ b/tdeinit/CMakeLists.txt
@@ -40,7 +40,7 @@ set( ${target}_SRCS
tde_add_executable( ${target}
SOURCES ${${target}_SRCS}
- LINK kICE-static ltdlc-static tdeparts-shared ${XFT_LIBRARIES}
+ LINK kICE-static ltdlc-static tdeparts-shared ${FONTCONFIG_LIBRARIES} ${XFT_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)
diff --git a/tdeio/CMakeLists.txt b/tdeio/CMakeLists.txt
index 103a67fb7..2a8fc7f3a 100644
--- a/tdeio/CMakeLists.txt
+++ b/tdeio/CMakeLists.txt
@@ -94,6 +94,7 @@ tde_add_library( ${target} SHARED
SOURCES ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp
VERSION 14.0.0
EMBED kssl-static tdeiocore-static tdesycoca-static kbookmarks-static tdefile-static ${ELFICON_STATIC_LIB}
- LINK ltdlc-static tdeui-shared tdesu-shared tdewalletclient-shared ${LIBR_LIBRARIES} ${ACL_LIBRARIES}
+ LINK tdeui-shared tdewalletclient-shared
+ LINK_PRIVATE ltdlc-static tdesu-shared ${LIBR_LIBRARIES} ${ACL_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)
diff --git a/tdeioslave/file/CMakeLists.txt b/tdeioslave/file/CMakeLists.txt
index e1ff68834..783c002dd 100644
--- a/tdeioslave/file/CMakeLists.txt
+++ b/tdeioslave/file/CMakeLists.txt
@@ -49,7 +49,6 @@ set( ${target}_SRCS
tde_add_kpart( ${target} AUTOMOC
SOURCES ${${target}_SRCS}
- LINK tdeio-shared
+ LINK tdeio-shared ${ACL_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}
)
-
diff --git a/tdesu/CMakeLists.txt b/tdesu/CMakeLists.txt
index 8dcf012bd..de84adb4e 100644
--- a/tdesu/CMakeLists.txt
+++ b/tdesu/CMakeLists.txt
@@ -42,7 +42,8 @@ set( ${target}_SRCS
tde_add_library( ${target} SHARED
SOURCES ${${target}_SRCS}
VERSION 14.0.0
- LINK tdecore-shared ${LIB_UTIL}
+ LINK tdecore-shared
+ LINK_PRIVATE ${LIB_UTIL}
DESTINATION ${LIB_INSTALL_DIR}
)
diff --git a/tdeui/CMakeLists.txt b/tdeui/CMakeLists.txt
index 10d4088f7..db79ccafd 100644
--- a/tdeui/CMakeLists.txt
+++ b/tdeui/CMakeLists.txt
@@ -148,7 +148,8 @@ set( ${target}_SRCS
tde_add_library( ${target} SHARED AUTOMOC
SOURCES ${${target}_SRCS}
VERSION 14.0.0
- LINK tdecore-shared ${FREETYPE_LIBRARIES} ${FONTCONFIG_LIBRARIES} ${XEXT_LIBRARIES}
+ LINK tdecore-shared
+ LINK_PRIVATE ${FREETYPE_LIBRARIES} ${FONTCONFIG_LIBRARIES} ${XEXT_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)