vcpkg/ports/tesseract/fix_static_link_icu.patch
jim wang 93b7a0d701
[tesseract] Fix training-tools feature compilation error (#31888)
* fix raining-tools feature compilation error

* update version

* Remove useless patches

* update version

* fix TRAINING_TOOLS

* update version

* fix format

* update version

* fix format

* update version
2023-06-13 22:09:57 -07:00

14 lines
526 B
Diff

diff --git a/src/training/CMakeLists.txt b/src/training/CMakeLists.txt
index 429ed04..9878fa5 100644
--- a/src/training/CMakeLists.txt
+++ b/src/training/CMakeLists.txt
@@ -72,7 +72,7 @@ if(NOT SW_BUILD)
if(PKG_CONFIG_FOUND)
pkg_check_modules(ICU REQUIRED IMPORTED_TARGET icu-uc icu-i18n)
else()
- find_package(ICU 52.1 COMPONENTS uc i18n)
+ find_package(ICU 72.1 COMPONENTS uc i18n dt)
endif()
if(ICU_FOUND)
message(">> ICU_FOUND ${ICU_FOUND} ${ICU_VERSION} ${ICU_LIBRARIES} ${ICU_INCLUDE_DIRS}")