mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
Fix build.
This commit is contained in:
parent
dfb5aa5c34
commit
8e157dbb7e
@ -19,7 +19,7 @@ find_path(Leptonica_INCLUDE_DIR leptonica/allheaders.h
|
||||
/opt/local/include
|
||||
${Leptonica_DIR}/include
|
||||
)
|
||||
if("${Leptonica_INCLUDE_DIR}" EQUAL "Leptonica_INCLUDE_DIR-NOTFOUND")
|
||||
if(NOT "${Leptonica_INCLUDE_DIR}" EQUAL "Leptonica_INCLUDE_DIR-NOTFOUND")
|
||||
set(Leptonica_INCLUDE_DIRS ${Leptonica_INCLUDE_DIR}/leptonica)
|
||||
file(STRINGS ${Leptonica_INCLUDE_DIRS}/allheaders.h Leptonica_MAJOR_VERSION REGEX "LIBLEPT_MAJOR_VERSION")
|
||||
file(STRINGS ${Leptonica_INCLUDE_DIRS}/allheaders.h Leptonica_MINOR_VERSION REGEX "LIBLEPT_MINOR_VERSION")
|
||||
|
Loading…
Reference in New Issue
Block a user