vcpkg/ports/trantor/vcpkg.patch
An Tao 36de5f9de5
[trantor] Update to 1.5.3 (#21728)
* [trantor] Update to 1.5.3

* format

* version
2021-11-29 12:02:15 -08:00

15 lines
385 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 33b8e2c..e8c1cc2 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -148,6 +148,9 @@ if(HAVE_C-ARES)
set(private_headers
${private_headers}
trantor/net/inner/AresResolver.h)
+ if(APPLE)
+ target_link_libraries(${PROJECT_NAME} PRIVATE resolv)
+ endif()
else()
set(TRANTOR_SOURCES
${TRANTOR_SOURCES}