diff options
author | Slávek Banko <[email protected]> | 2025-01-13 11:16:03 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2025-01-13 16:59:44 +0100 |
commit | f5b49a52fc61ed1c745dcb77e3024ee4024642db (patch) | |
tree | 7d3cfce76252292b2594a9fdfcb050dbe328d2b6 /ConfigureChecks.cmake | |
parent | 906c59e625cac661b96b901630110a36dcda8192 (diff) | |
download | libksquirrel-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.cmake | 5 |
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( ) |