mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
14 lines
461 B
Diff
14 lines
461 B
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index faf7ac1..5066996 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -818,7 +818,7 @@ if(LibArchive_FOUND)
|
||
|
target_link_libraries(libtesseract PUBLIC ${LibArchive_LIBRARIES})
|
||
|
endif(LibArchive_FOUND)
|
||
|
if(CURL_FOUND)
|
||
|
- if(NOT CURL_LIBRARIES)
|
||
|
+ if(TARGET CURL::libcurl)
|
||
|
target_link_libraries(libtesseract PUBLIC CURL::libcurl)
|
||
|
else()
|
||
|
target_link_libraries(libtesseract PUBLIC ${CURL_LIBRARIES})
|