From 57eef5d4f29934eed4d01f830dcfa0707a067f0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 13 Jan 2025 11:16:03 +0100 Subject: Prefer to use pkg-config to detect tiff library. This solves FTBFS with tiff library >= 4.7.0. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kernel/kls_tiff/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kernel') diff --git a/kernel/kls_tiff/CMakeLists.txt b/kernel/kls_tiff/CMakeLists.txt index 855092e..85b2501 100644 --- a/kernel/kls_tiff/CMakeLists.txt +++ b/kernel/kls_tiff/CMakeLists.txt @@ -4,6 +4,9 @@ include_directories( ${CMAKE_BINARY_DIR} ) +link_directories( + ${TIFF_LIBRARY_DIRS} +) add_definitions( -DTIFF_UI="${SHARE_INSTALL_PREFIX}/ksquirrel-libs/libkls_tiff.so.ui" @@ -14,7 +17,7 @@ add_definitions( tde_add_library( kls_tiff SHARED AUTOMOC SOURCES fmt_codec_tiff.cpp - LINK ksquirrel-libs-shared ${TIFF_LIBRARY} + LINK ksquirrel-libs-shared ${TIFF_LIBRARIES} VERSION 0.8.0 DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs ) -- cgit v1.2.1