Debian Codegraph @

vcpkg/overlay_ports/opencv4/0018-contrib-fix-tesseract.patch

raw
1 --- a/modules/text/cmake/init.cmake
2 +++ b/modules/text/cmake/init.cmake
3 @@ -4,6 +4,8 @@ OCV_OPTION(WITH_TESSERACT "Include Tesseract OCR library support" (NOT CMAKE_CRO
4 if(NOT HAVE_TESSERACT
5 AND (WITH_TESSERACT OR OPENCV_FIND_TESSERACT)
6 )
7 + find_package(Tesseract CONFIG REQUIRED)
8 + set(Tesseract_LIBRARIES Tesseract::libtesseract)
9 if(NOT Tesseract_FOUND)
10 find_package(Tesseract QUIET) # Prefer CMake's standard locations (including Tesseract_DIR)
11 endif()