-
- Downloads
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>
Showing
- CMakeLists.txt 21 additions, 6 deletionsCMakeLists.txt
- lib/CMakeLists.txt 1 addition, 1 deletionlib/CMakeLists.txt
- lib/curl_config.h.cmake 6 additions, 0 deletionslib/curl_config.h.cmake
- tests/libtest/CMakeLists.txt 1 addition, 1 deletiontests/libtest/CMakeLists.txt
- tests/server/CMakeLists.txt 1 addition, 1 deletiontests/server/CMakeLists.txt
Loading
Please register or sign in to comment