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

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

13 lines
415 B
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -792,7 +792,8 @@ if(OpenCL_FOUND)
target_link_libraries(libtesseract PUBLIC OpenCL::OpenCL)
endif()
if(LibArchive_FOUND)
- target_link_libraries(libtesseract PUBLIC ${LibArchive_LIBRARIES})
+ find_package(LibArchive REQUIRED)
+ target_link_libraries(libtesseract PRIVATE LibArchive::LibArchive)
endif(LibArchive_FOUND)
if(CURL_FOUND)
if(NOT CURL_LIBRARIES)