--- a/CMakeLists.txt 2016-08-12 00:40:12.000000000 +0900 +++ b/CMakeLists.txt 2018-02-09 13:27:05.721561755 +0900 @@ -192,7 +192,8 @@ IF(TIFF_FOUND) # Confirm required API is available INCLUDE(CheckFunctionExists) - SET(CMAKE_REQUIRED_LIBRARIES ${TIFF_LIBRARIES}) + FIND_PACKAGE(LibLZMA) + SET(CMAKE_REQUIRED_LIBRARIES ${TIFF_LIBRARIES} ${ZLIB_LIBRARIES} ${JPEG_LIBRARIES} ${LIBLZMA_LIBRARIES}) CHECK_FUNCTION_EXISTS(TIFFOpen HAVE_TIFFOPEN) IF(NOT HAVE_TIFFOPEN) @@ -205,7 +206,7 @@ SET(TIFF_FOUND) # ReSET to NOT found for TIFF library MESSAGE(FATAL_ERROR "Failed to link with libtiff - TIFFMergeFieldInfo function not found. libtiff 3.6.0 Beta or later required. Please upgrade or use an older version of libgeotiff") ENDIF() - + SET(CMAKE_REQUIRED_LIBRARIES) INCLUDE_DIRECTORIES(${TIFF_INCLUDE_DIR}) ADD_DEFINITIONS(-DHAVE_TIFF=1) ENDIF(TIFF_FOUND)