vcpkg/ports/tesseract/fix-depend-libarchive.patch

13 lines
415 B
Diff
Raw Normal View History

--- 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)