summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPeter Wu <peter_at_lekensteyn.nl>2014-11-19 16:48:23 +0100
committerSteve Holme <steve_holme@hotmail.com>2014-11-19 19:46:03 +0000
commitc5b225c8cafcc440fda45603bfc69f3dfc278baf (patch)
tree83f0979710d237f6a4ae09bb93dc2e9da2bcdbb4 /CMakeLists.txt
parent831312febefb8ed35f0094fd1f6dbabad89c672f (diff)
downloadcurl-c5b225c8cafcc440fda45603bfc69f3dfc278baf.tar.gz
cmake: fix NTLM detection when CURL_DISABLE_HTTP defined
Updated following changes in commit f0d860d. Acked-by: Brad King <brad.king@kitware.com> Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 57575f4a2..a735c1923 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1030,11 +1030,11 @@ _add_if("SPNEGO" NOT CURL_DISABLE_CRYPTO_AUTH AND
(HAVE_GSS_API OR USE_WINDOWS_SSPI))
# NTLM support requires crypto function adaptions from various SSL libs
# TODO alternative SSL libs tests for SSP1, GNUTLS, NSS, DARWINSSL
-if(NOT CURL_DISABLE_HTTP AND NOT CURL_DISABLE_CRYPTO_AUTH AND (USE_OPENSSL OR
+if(NOT CURL_DISABLE_CRYPTO_AUTH AND (USE_OPENSSL OR
USE_WINDOWS_SSPI OR GNUTLS_ENABLED OR NSS_ENABLED OR DARWINSSL_ENABLED))
_add_if("NTLM" 1)
# TODO missing option (autoconf: --enable-ntlm-wb)
- _add_if("NTLM_WB" NTLM_WB_ENABLED)
+ _add_if("NTLM_WB" NOT CURL_DISABLE_HTTP AND NTLM_WB_ENABLED)
endif()
# TODO missing option (--enable-tls-srp), depends on GNUTLS_SRP/OPENSSL_SRP
_add_if("TLS-SRP" USE_TLS_SRP)