mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
Merge pull request #3712 from stweil/cmake
cmake: TIFF is only used for WIN32
This commit is contained in:
commit
ded6108756
@ -372,15 +372,17 @@ else()
|
|||||||
include_directories(${Leptonica_INCLUDE_DIRS})
|
include_directories(${Leptonica_INCLUDE_DIRS})
|
||||||
|
|
||||||
# Check for optional libraries.
|
# Check for optional libraries.
|
||||||
find_package(TIFF) # for tesseract
|
if(WIN32)
|
||||||
if(NOT TIFF_FOUND AND PKG_CONFIG_EXECUTABLE)
|
find_package(TIFF) # for tesseract
|
||||||
# try PKG_CONFIG to find libtiff if cmake failed
|
if(NOT TIFF_FOUND AND PKG_CONFIG_EXECUTABLE)
|
||||||
pkg_check_modules(TIFF libtiff-4)
|
# try PKG_CONFIG to find libtiff if cmake failed
|
||||||
endif()
|
pkg_check_modules(TIFF libtiff-4)
|
||||||
if(TIFF_FOUND)
|
endif()
|
||||||
set(HAVE_TIFFIO_H ON)
|
if(TIFF_FOUND)
|
||||||
include_directories(${TIFF_INCLUDE_DIRS})
|
set(HAVE_TIFFIO_H ON)
|
||||||
endif(TIFF_FOUND)
|
include_directories(${TIFF_INCLUDE_DIRS})
|
||||||
|
endif(TIFF_FOUND)
|
||||||
|
endif(WIN32)
|
||||||
if(DISABLE_ARCHIVE)
|
if(DISABLE_ARCHIVE)
|
||||||
set(HAVE_LIBARCHIVE OFF)
|
set(HAVE_LIBARCHIVE OFF)
|
||||||
else(DISABLE_ARCHIVE)
|
else(DISABLE_ARCHIVE)
|
||||||
|
Loading…
Reference in New Issue
Block a user