mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
d3431006f2
* [tesseract5] fix downstream usage * fix references
13 lines
415 B
Diff
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)
|