Merge pull request #3591 from lucivpav/fork

[tesseract] fix leptonica dependency
This commit is contained in:
Alexander Karatarakis 2018-05-29 18:49:44 -07:00 committed by GitHub
commit 8422523739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/cmake/templates/TesseractConfig.cmake.in b/cmake/templates/TesseractConfig.cmake.in
index 13838361..245ca2bc 100644
--- a/cmake/templates/TesseractConfig.cmake.in
+++ b/cmake/templates/TesseractConfig.cmake.in
@@ -21,6 +21,8 @@
include(${CMAKE_CURRENT_LIST_DIR}/TesseractTargets.cmake)
+find_package(Leptonica REQUIRED)
+
# ======================================================
# Version variables:
# ======================================================

View File

@ -18,6 +18,7 @@ vcpkg_apply_patches(
PATCHES
${CMAKE_CURRENT_LIST_DIR}/use-vcpkg-icu.patch
${CMAKE_CURRENT_LIST_DIR}/ws2-32.patch
${CMAKE_CURRENT_LIST_DIR}/leptonica.patch
)
# The built-in cmake FindICU is better