diff options
| author | Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> | 2020-11-23 16:20:30 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-23 16:20:30 -0800 |
| commit | 6e073f168652a551d8f29d19481ec67be3fccac8 (patch) | |
| tree | b446332c42e6b5642c5887cf24879064cd6dcb97 /ports/tesseract/fix-training-tools.patch | |
| parent | 38752e29c2b60ea522d629a40b57b95606e16715 (diff) | |
| download | vcpkg-6e073f168652a551d8f29d19481ec67be3fccac8.tar.gz vcpkg-6e073f168652a551d8f29d19481ec67be3fccac8.zip | |
[tesseract] Enable dynamic build, format portfile.cmake (#14650)
* [tesseract] Enable dynamic build, format portfile.cmake
* [tesseract] Remove wrongly deletions
* [tesseract] Fix build training tools on dynamic
Diffstat (limited to 'ports/tesseract/fix-training-tools.patch')
| -rw-r--r-- | ports/tesseract/fix-training-tools.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ports/tesseract/fix-training-tools.patch b/ports/tesseract/fix-training-tools.patch new file mode 100644 index 000000000..fd5729cb8 --- /dev/null +++ b/ports/tesseract/fix-training-tools.patch @@ -0,0 +1,40 @@ +diff --git a/src/training/CMakeLists.txt b/src/training/CMakeLists.txt +index af291a5..f2e2ceb 100644 +--- a/src/training/CMakeLists.txt ++++ b/src/training/CMakeLists.txt +@@ -63,7 +63,7 @@ endif() + # LIBRARY tessopt + ######################################## + +-add_library (tessopt tessopt.cpp tessopt.h) ++add_library (tessopt STATIC tessopt.cpp tessopt.h) + project_group (tessopt "Training Tools") + + +@@ -81,7 +81,7 @@ set(common_training_src + mastertrainer.cpp + mastertrainer.h + ) +-add_library (common_training ${common_training_src}) ++add_library (common_training STATIC ${common_training_src}) + target_link_libraries (common_training libtesseract tessopt) + project_group (common_training "Training Tools") + +@@ -196,7 +196,7 @@ set(unicharset_training_src + validate_javanese.cpp validate_myanmar.cpp validator.cpp + + ) +-add_library (unicharset_training ${unicharset_training_src}) ++add_library (unicharset_training STATIC ${unicharset_training_src}) + if(UNIX) + list(APPEND ICU_LIBRARIES ${CMAKE_DL_LIBS}) + endif() +@@ -270,7 +270,7 @@ endif() + + find_package(unofficial-cairo CONFIG REQUIRED) + find_package(unofficial-glib CONFIG REQUIRED) +-find_package(Intl CONFIG REQUIRED) ++find_package(Intl REQUIRED) + find_package(Fontconfig REQUIRED) + find_package(Freetype REQUIRED) + if(UNIX OR BUILD_SHARED_LIBS) |
