vcpkg/ports/trantor/vcpkg.patch

15 lines
396 B
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ad5a1b3..7d59844 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -133,6 +133,9 @@ if(c-ares_FOUND)
set(private_headers
${private_headers}
trantor/net/inner/AresResolver.h)
+ if(APPLE)
+ target_link_libraries(${PROJECT_NAME} PRIVATE resolv)
+ endif()
else(c-ares_FOUND)
set(TRANTOR_SOURCES
${TRANTOR_SOURCES}