vcpkg/ports/trantor/vcpkg.patch
An Tao 496f9e4fa4
[trantor] Update to 1.2.0 (#15841)
* [trantor] Update to 1.2.0

* Add versions file
2021-01-25 00:16:36 -08:00

15 lines
504 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d164667..e75b869 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -90,6 +90,9 @@ if(c-ares_FOUND)
message(STATUS "c-ares found!")
target_link_libraries(${PROJECT_NAME} PRIVATE c-ares_lib)
set(TRANTOR_SOURCES ${TRANTOR_SOURCES} trantor/net/inner/AresResolver.cc)
+ if(APPLE)
+ target_link_libraries(${PROJECT_NAME} PRIVATE resolv)
+ endif()
else()
set(TRANTOR_SOURCES ${TRANTOR_SOURCES} trantor/net/inner/NormalResolver.cc)
endif()