vcpkg/ports/opencv4/0018-fix-depend-tesseract.patch
Lily Wang 69e4d02ce4
[tesseract] update to 5.2.0 (#26114)
* [tesseract] update to 5.2.0

* x-add-version

* fix windows build error

* version

* fix opencv4 build error

* version

* conflict

* version

* fix opencv build error on uwp

* version

* fix linux build error

* version

* fix

* version

* version
2022-08-15 11:57:44 -07:00

14 lines
582 B
Diff

diff --git a/modules/text/cmake/init.cmake b/modules/text/cmake/init.cmake
index 254757e..73194ec 100644
--- 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()