summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2025-01-13 11:45:25 +0100
committerSlávek Banko <[email protected]>2025-01-13 11:45:25 +0100
commitdb8b48484080c073c32b8477234bb07efc3ec510 (patch)
tree6f2504cec233bbfde1c4bec0143951f7ec6676e4
parent846a6d3d69a79a545a65e8f27758745a43ba519c (diff)
downloaddigikam-db8b48484080c073c32b8477234bb07efc3ec510.tar.gz
digikam-db8b48484080c073c32b8477234bb07efc3ec510.zip
Prefer to use pkg-config to detect tiff library.
This solves FTBFS with tiff library >= 4.7.0. Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r--ConfigureChecks.cmake5
-rw-r--r--src/libs/dimg/loaders/CMakeLists.txt4
2 files changed, 8 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 9fa91c17..482187b2 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -124,7 +124,10 @@ endif()
##### checks for libtiff
-find_package( TIFF )
+pkg_search_module( TIFF libtiff-4 )
+if( NOT TIFF_FOUND )
+ find_package( TIFF )
+endif( )
if( NOT TIFF_FOUND )
tde_message_fatal( "libtiff is required but not found on your system" )
endif( )
diff --git a/src/libs/dimg/loaders/CMakeLists.txt b/src/libs/dimg/loaders/CMakeLists.txt
index e880e579..6e47d86a 100644
--- a/src/libs/dimg/loaders/CMakeLists.txt
+++ b/src/libs/dimg/loaders/CMakeLists.txt
@@ -6,6 +6,10 @@ include_directories(
${CMAKE_SOURCE_DIR}/src/libs/whitebalance
)
+link_directories(
+ ${TIFF_LIBRARY_DIRS}
+)
+
##### dimgloaders library (static)