From f5b49a52fc61ed1c745dcb77e3024ee4024642db 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 (cherry picked from commit 57eef5d4f29934eed4d01f830dcfa0707a067f0e) --- ConfigureChecks.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ConfigureChecks.cmake') 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( ) -- cgit v1.2.1