mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
cmake: do not try to even configure training tools if pkg-config is not present.
This commit is contained in:
parent
8f02255294
commit
bcf7bbb6e2
@ -346,6 +346,10 @@ if(SW_BUILD)
|
|||||||
sw_execute()
|
sw_execute()
|
||||||
else()
|
else()
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
|
if(BUILD_TRAINING_TOOLS and NOT PKG_CONFIG_FOUND)
|
||||||
|
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
|
# Check for required library. option -DLeptonica_DIR=path => cmake hint where
|
||||||
# to find leptonica
|
# to find leptonica
|
||||||
find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} CONFIG)
|
find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} CONFIG)
|
||||||
|
Loading…
Reference in New Issue
Block a user