diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/opencv3/0013-contrib-fix-tesseract.patch | |
Diffstat (limited to 'vcpkg/ports/opencv3/0013-contrib-fix-tesseract.patch')
| -rw-r--r-- | vcpkg/ports/opencv3/0013-contrib-fix-tesseract.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vcpkg/ports/opencv3/0013-contrib-fix-tesseract.patch b/vcpkg/ports/opencv3/0013-contrib-fix-tesseract.patch new file mode 100644 index 0000000..6a8bc7a --- /dev/null +++ b/vcpkg/ports/opencv3/0013-contrib-fix-tesseract.patch @@ -0,0 +1,11 @@ +--- a/modules/text/cmake/init.cmake ++++ b/modules/text/cmake/init.cmake +@@ -4,6 +4,8 @@ OCV_OPTION(WITH_TESSERACT "Include Tesseract OCR library support" (NOT CMAKE_CRO + if(NOT HAVE_TESSERACT + AND (WITH_TESSERACT OR OPENCV_FIND_TESSERACT) + ) ++ find_package(Tesseract CONFIG REQUIRED) ++ set(Tesseract_LIBRARIES Tesseract::libtesseract) + if(NOT Tesseract_FOUND) + find_package(Tesseract QUIET) # Prefer CMake's standard locations (including Tesseract_DIR) + endif() |