summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-06-17 13:07:56 +0100
committerGitHub <noreply@github.com>2019-06-17 13:07:56 +0100
commit89f36f1b7be670a792362edeb66487efcd468939 (patch)
tree51bef69ffe0ec99fa60a4f5a70c38952f60b6a43
parent37e4c1ba1df4e1f9b0f0ab28762c14b862c3338d (diff)
parent393fb8a141ba6831eb995c5cd2a2ae8c49292505 (diff)
downloadlibgit2-89f36f1b7be670a792362edeb66487efcd468939.tar.gz
Merge pull request #5124 from pks-t/pks/cmake-ntlm-without-https
cmake: default NTLM client to off if no HTTPS support
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 127449ce3..6e633f119 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -66,7 +66,11 @@ OPTION(DEPRECATE_HARD "Do not include deprecated functions in the library" OFF
SET(REGEX_BACKEND "" CACHE STRING "Regular expression implementation. One of regcomp_l, pcre2, pcre, regcomp, or builtin.")
IF (UNIX)
- OPTION(USE_NTLMCLIENT "Enable NTLM support on Unix." ON )
+ IF (NOT USE_HTTPS)
+ OPTION(USE_NTLMCLIENT "Enable NTLM support on Unix." OFF )
+ ELSE()
+ OPTION(USE_NTLMCLIENT "Enable NTLM support on Unix." ON )
+ ENDIF()
ENDIF()
IF (UNIX AND NOT APPLE)