mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
Fix Leptonica version check for cmake
* The check was missing. * The check did not work with the given Leptonica version. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
c124f87d5b
commit
7a9a2f7b33
@ -44,12 +44,12 @@ set(VERSION_MAJOR 3)
|
||||
set(VERSION_MINOR 05)
|
||||
set(VERSION_PLAIN ${VERSION_MAJOR}.${VERSION_MINOR})
|
||||
|
||||
set(MINIMUM_LEPTONICA_VERSION 1.74.0)
|
||||
set(MINIMUM_LEPTONICA_VERSION 1.74)
|
||||
|
||||
if(NOT EXISTS ${PROJECT_SOURCE_DIR}/.cppan)
|
||||
if (NOT Leptonica_DIR AND NOT MSVC)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(Leptonica REQUIRED lept)
|
||||
pkg_check_modules(Leptonica REQUIRED lept>=${MINIMUM_LEPTONICA_VERSION})
|
||||
else()
|
||||
find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} REQUIRED CONFIG)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user