mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 06:39:00 +08:00
c9eb3bd14e
* [curl] Use find_package c-ares provided by vcpkg * update version --------- Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
16 lines
386 B
Diff
16 lines
386 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index f6e1071..62aed82 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -169,8 +169,8 @@ set(CURL_LIBS "")
|
|
|
|
if(ENABLE_ARES)
|
|
set(USE_ARES 1)
|
|
- find_package(CARES REQUIRED)
|
|
- list(APPEND CURL_LIBS ${CARES_LIBRARY})
|
|
+ find_package(c-ares CONFIG REQUIRED)
|
|
+ list(APPEND CURL_LIBS c-ares::cares)
|
|
endif()
|
|
|
|
include(CurlSymbolHiding)
|