2023-07-26 14:28:18 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2023-10-03 11:48:58 +08:00
|
|
|
index efa0434..b87a1a3 100755
|
2023-07-26 14:28:18 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2023-10-03 11:48:58 +08:00
|
|
|
@@ -190,7 +190,7 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE TRANTOR_TLS_PROVIDER=${TRANTO
|
2023-07-26 14:28:18 +08:00
|
|
|
|
|
|
|
set(HAVE_C-ARES NO)
|
|
|
|
if (BUILD_C-ARES)
|
|
|
|
- find_package(c-ares)
|
|
|
|
+ find_package(c-ares CONFIG)
|
|
|
|
if(c-ares_FOUND)
|
|
|
|
message(STATUS "c-ares found!")
|
|
|
|
set(HAVE_C-ARES TRUE)
|
2023-10-03 11:48:58 +08:00
|
|
|
@@ -198,7 +198,7 @@ if (BUILD_C-ARES)
|
2023-07-26 14:28:18 +08:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
if(HAVE_C-ARES)
|
|
|
|
- target_link_libraries(${PROJECT_NAME} PRIVATE c-ares_lib)
|
|
|
|
+ target_link_libraries(${PROJECT_NAME} PRIVATE c-ares::cares)
|
|
|
|
set(TRANTOR_SOURCES
|
|
|
|
${TRANTOR_SOURCES}
|
|
|
|
trantor/net/inner/AresResolver.cc)
|
|
|
|
diff --git a/cmake/templates/TrantorConfig.cmake.in b/cmake/templates/TrantorConfig.cmake.in
|
2023-10-03 11:48:58 +08:00
|
|
|
index 8c62924..dd243d0 100644
|
2023-07-26 14:28:18 +08:00
|
|
|
--- a/cmake/templates/TrantorConfig.cmake.in
|
|
|
|
+++ b/cmake/templates/TrantorConfig.cmake.in
|
2023-10-03 11:48:58 +08:00
|
|
|
@@ -17,7 +17,7 @@ if(@Botan_FOUND@)
|
|
|
|
find_dependency(Botan)
|
2023-07-26 14:28:18 +08:00
|
|
|
endif()
|
|
|
|
if(@c-ares_FOUND@)
|
|
|
|
- find_dependency(c-ares)
|
|
|
|
+ find_dependency(c-ares CONFIG)
|
|
|
|
endif()
|
|
|
|
find_dependency(Threads)
|
|
|
|
# Compute paths
|