vcpkg/ports/curl/0023-fix-find-cares.patch
Lily Wang c9eb3bd14e
[curl] Use find_package c-ares provided by vcpkg (#29350)
* [curl] Use find_package c-ares provided by vcpkg

* update version

---------

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2023-02-02 16:52:18 -08:00

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)