fix leptonica in tesseract

This commit is contained in:
Pavel Lučivňák 2018-05-26 23:05:37 +02:00
parent 2ac7527b40
commit c2fb13ab01
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 PATCHES
${CMAKE_CURRENT_LIST_DIR}/use-vcpkg-icu.patch ${CMAKE_CURRENT_LIST_DIR}/use-vcpkg-icu.patch
${CMAKE_CURRENT_LIST_DIR}/ws2-32.patch ${CMAKE_CURRENT_LIST_DIR}/ws2-32.patch
${CMAKE_CURRENT_LIST_DIR}/leptonica.patch
) )
# The built-in cmake FindICU is better # The built-in cmake FindICU is better