mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
cmake: do not try to configure training tools without PkgConfig
This commit is contained in:
parent
2ee90ffe08
commit
b565cfee9b
@ -336,6 +336,10 @@ if (SW_BUILD)
|
||||
sw_execute()
|
||||
else()
|
||||
find_package(PkgConfig)
|
||||
if(BUILD_TRAINING_TOOLS)
|
||||
message(WARNING "Building of Training Tools requires PkgConfig")
|
||||
set(BUILD_TRAINING_TOOLS OFF)
|
||||
endif(BUILD_TRAINING_TOOLS)
|
||||
# Check for required library.
|
||||
# option -DLeptonica_DIR=path => cmake hint where to find leptonica
|
||||
find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} CONFIG)
|
||||
|
Loading…
Reference in New Issue
Block a user