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}