[tesseract] Link executable to libarchive to fix linker error (#27307)

* [tesseract] link exe to libarchive to fix link error

* ./vcpkg x-add-version --all

* address comments

* ./vcpkg x-add-version --all --overwrite-version
This commit is contained in:
Russell Greene 2022-10-24 15:12:32 -06:00 committed by GitHub
parent f103104efc
commit 455d8d85e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 2 deletions

View File

@ -1,3 +1,5 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bd2649d..c1801a6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -792,7 +792,8 @@ if(OpenCL_FOUND)
@ -10,3 +12,12 @@
endif(LibArchive_FOUND)
if(CURL_FOUND)
if(NOT CURL_LIBRARIES)
@@ -854,7 +855,7 @@ endif()
# ##############################################################################
add_executable(tesseract src/tesseract.cpp)
-target_link_libraries(tesseract libtesseract)
+target_link_libraries(tesseract libtesseract LibArchive::LibArchive)
if(HAVE_TIFFIO_H AND WIN32)
target_link_libraries(tesseract ${TIFF_LIBRARIES})
endif()

View File

@ -1,7 +1,7 @@
{
"name": "tesseract",
"version": "5.2.0",
"port-version": 2,
"port-version": 3,
"description": "An OCR Engine that was developed at HP Labs between 1985 and 1995... and now at Google.",
"homepage": "https://github.com/tesseract-ocr/tesseract",
"license": "Apache-2.0",

View File

@ -7302,7 +7302,7 @@
},
"tesseract": {
"baseline": "5.2.0",
"port-version": 2
"port-version": 3
},
"tfhe": {
"baseline": "1.0.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "106efd2adc79ebdcf63488c2cc930b035f01535d",
"version": "5.2.0",
"port-version": 3
},
{
"git-tree": "9d9b7d5ba2e222ee4fb62d4d5f03992e9232a97d",
"version": "5.2.0",