Prefer to use pkg-config to detect tiff library.

This solves FTBFS with tiff library >= 4.7.0.
This resolves issue TDE/tde-packaging#385.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/336/head
Slávek Banko 1 month ago
parent 8ee06ec529
commit 180ceca8bb
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -854,7 +854,10 @@ set( HAVE_LIBPNG 1 )
##### check for tiff ############################
if( WITH_TIFF )
find_package( TIFF )
pkg_search_module( TIFF libtiff-4 )
if( NOT TIFF_FOUND )
find_package( TIFF )
endif( NOT TIFF_FOUND )
if( NOT TIFF_FOUND )
message(FATAL_ERROR "\ntiff are requested, but not found on your system" )
endif( NOT TIFF_FOUND )

@ -20,6 +20,7 @@ include_directories(
link_directories(
${TDECORE_LIBRARY_DIRS}
${TIFF_LIBRARY_DIRS}
)

Loading…
Cancel
Save