mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 18:39:01 +08:00
15 lines
504 B
Diff
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()
|