diff options
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | kimgio/CMakeLists.txt | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d6f11106..1628a580d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ) diff --git a/kimgio/CMakeLists.txt b/kimgio/CMakeLists.txt index cd013e588..0e588bcce 100644 --- a/kimgio/CMakeLists.txt +++ b/kimgio/CMakeLists.txt @@ -20,6 +20,7 @@ include_directories( link_directories( ${TDECORE_LIBRARY_DIRS} + ${TIFF_LIBRARY_DIRS} ) |