diff options
-rw-r--r-- | ConfigureChecks.cmake | 5 | ||||
-rw-r--r-- | src/libs/dimg/loaders/CMakeLists.txt | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 9fa91c17..482187b2 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -124,7 +124,10 @@ endif() ##### checks for libtiff -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 is required but not found on your system" ) endif( ) diff --git a/src/libs/dimg/loaders/CMakeLists.txt b/src/libs/dimg/loaders/CMakeLists.txt index e880e579..6e47d86a 100644 --- a/src/libs/dimg/loaders/CMakeLists.txt +++ b/src/libs/dimg/loaders/CMakeLists.txt @@ -6,6 +6,10 @@ include_directories( ${CMAKE_SOURCE_DIR}/src/libs/whitebalance ) +link_directories( + ${TIFF_LIBRARY_DIRS} +) + ##### dimgloaders library (static) |