mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 23:37:49 +08:00
fix leptonica in tesseract
This commit is contained in:
parent
2ac7527b40
commit
c2fb13ab01
13
ports/tesseract/leptonica.patch
Normal file
13
ports/tesseract/leptonica.patch
Normal 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:
|
||||||
|
# ======================================================
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user