]> granicus.if.org Git - curl/commit
cmake: add ENABLE_THREADED_RESOLVER, rename ARES
authorPeter Wu <peter@lekensteyn.nl>
Thu, 6 Nov 2014 00:32:45 +0000 (01:32 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 10 Nov 2014 08:09:25 +0000 (09:09 +0100)
commit17d27805f9e68fb3fa62e1ed817d2b9f44885ee2
tree335e511d63d30239039297e1a805ed483113203e
parent767aaf587ce93720951d3c081acb4d61d5280755
cmake: add ENABLE_THREADED_RESOLVER, rename ARES

Fix detection of the AsynchDNS feature which not just depends on
pthreads support, but also on whether USE_POSIX_THREADS is set or not.
Caught by test 1014.

This patch adds a new ENABLE_THREADED_RESOLVER option (corresponding to
--enable-threaded-resolver of autotools) which also needs a check for
HAVE_PTHREAD_H.

For symmetry with autotools, CURL_USE_ARES is renamed to ENABLE_ARES
(--enable-ares). Checks that test for the availability actually use
USE_ARES instead as that is the result of whether a-res is available or
not (in practice this does not matter as CARES is marked as required
package, but nevertheless it is better to write the intent).

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
CMakeLists.txt
lib/CMakeLists.txt
lib/curl_config.h.cmake
tests/libtest/CMakeLists.txt
tests/server/CMakeLists.txt