mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 19:29:00 +08:00
Merge pull request #3591 from lucivpav/fork
[tesseract] fix leptonica dependency
This commit is contained in:
commit
8422523739
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