From a8ea1e9ef4ec959cfe95193318a05688f4610841 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 14 Jul 2009 19:03:31 +0000 Subject: ENH: add optional support for c-ares --- tests/libtest/CMakeLists.txt | 4 +++- tests/server/CMakeLists.txt | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/libtest/CMakeLists.txt b/tests/libtest/CMakeLists.txt index 74d841e01..f0ee8cd2b 100644 --- a/tests/libtest/CMakeLists.txt +++ b/tests/libtest/CMakeLists.txt @@ -9,7 +9,9 @@ function(SETUP_TEST TEST_NAME) # ARGN are the files in the test ${CURL_BINARY_DIR}/lib # To be able to reach "curl_config.h" ${CURL_BINARY_DIR}/include # To be able to reach "curl/curlbuild.h" ) - + if(CURL_USE_ARES) + include_directories(${CARES_INCLUDE_DIR}) + endif() setup_curl_dependencies(${TEST_NAME}) target_link_libraries( ${TEST_NAME} libcurl ) diff --git a/tests/server/CMakeLists.txt b/tests/server/CMakeLists.txt index 01db82401..99ec3d897 100644 --- a/tests/server/CMakeLists.txt +++ b/tests/server/CMakeLists.txt @@ -9,7 +9,10 @@ function(SETUP_EXECUTABLE TEST_NAME) # ARGN are the files in the test ${CURL_BINARY_DIR}/lib # To be able to reach "curl_config.h" ${CURL_BINARY_DIR}/include # To be able to reach "curl/curlbuild.h" ) - + if(CURL_USE_ARES) + include_directories(${CARES_INCLUDE_DIR}) + endif() + # resolve test needs this setup_curl_dependencies(${TEST_NAME}) #TARGET_LINK_LIBRARIES( ${TEST_NAME} libcurl ) -- cgit v1.2.3