mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
another improvement for ca0be2fb72
This commit is contained in:
parent
e92a424efa
commit
5282cdf7be
@ -151,7 +151,7 @@ if(CPPAN_BUILD)
|
||||
add_subdirectory(.cppan)
|
||||
else()
|
||||
find_package(PkgConfig)
|
||||
if(PKG_CONFIG_EXECUTABLE)
|
||||
if(PKG_CONFIG_EXECUTABLE and NOT Leptonica_DIR)
|
||||
pkg_check_modules(Leptonica REQUIRED lept>=${MINIMUM_LEPTONICA_VERSION})
|
||||
link_directories(${Leptonica_LIBRARY_DIRS})
|
||||
else()
|
||||
|
Loading…
Reference in New Issue
Block a user