From 06a3b75538c36b4b42a226e263080fbbf0fd4531 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= <slavek.banko@axis.cz>
Date: Sun, 6 Nov 2022 00:32:37 +0100
Subject: tdehtml: Move link to JPEG_LIBRARIES where it is really used.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
---
 tdehtml/CMakeLists.txt      | 2 +-
 tdehtml/misc/CMakeLists.txt | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/tdehtml/CMakeLists.txt b/tdehtml/CMakeLists.txt
index 187eff352..624612d55 100644
--- a/tdehtml/CMakeLists.txt
+++ b/tdehtml/CMakeLists.txt
@@ -93,7 +93,7 @@ tde_add_library( ${target} SHARED AUTOMOC
   LINK ${VSCRIPT} kjava-static kjs_html-static tdehtmldom-static tdehtmlcss-static
     tdehtmlhtml-static tdehtmlxml-static tdehtmlrender-static tdehtmlmisc-static
     tdeutils-shared tdeprint-shared
-  LINK_PRIVATE kjs-shared ${JPEG_LIBRARIES}
+  LINK_PRIVATE kjs-shared
   DESTINATION ${LIB_INSTALL_DIR}
 )
 
diff --git a/tdehtml/misc/CMakeLists.txt b/tdehtml/misc/CMakeLists.txt
index 0babd6567..fbef060b7 100644
--- a/tdehtml/misc/CMakeLists.txt
+++ b/tdehtml/misc/CMakeLists.txt
@@ -38,4 +38,5 @@ set( ${target}_SRCS
 
 tde_add_library( ${target} STATIC_PIC AUTOMOC
   SOURCES ${${target}_SRCS}
+  LINK ${JPEG_LIBRARIES}
 )
-- 
cgit v1.2.1