vcpkg/ports/opencv4/0018-fix-depend-tesseract.patch
Stefano Sinigardi d3431006f2
[tesseract] fix downstream usage (#26378)
* [tesseract5] fix downstream usage

* fix references
2022-08-17 10:41:39 -07:00

12 lines
477 B
Diff

--- 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()