vcpkg/ports/trantor/vcpkg.patch

15 lines
504 B
Diff
Raw Normal View History

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()