summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2025-01-13 11:16:03 +0100
committerSlávek Banko <[email protected]>2025-01-13 16:59:44 +0100
commitf5b49a52fc61ed1c745dcb77e3024ee4024642db (patch)
tree7d3cfce76252292b2594a9fdfcb050dbe328d2b6 /ConfigureChecks.cmake
parent906c59e625cac661b96b901630110a36dcda8192 (diff)
downloadlibksquirrel-r14.1.x.tar.gz
libksquirrel-r14.1.x.zip
Prefer to use pkg-config to detect tiff library.r14.1.x
This solves FTBFS with tiff library >= 4.7.0. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 57eef5d4f29934eed4d01f830dcfa0707a067f0e)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index d8fe7e1..b00bc15 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -241,7 +241,10 @@ endif( )
##### checks for tiff codec #####
if( BUILD_TIFF )
- 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 was requested but not found on your system" )
endif( )