Merge pull request #5124 from pks-t/pks/cmake-ntlm-without-https cmake: default NTLM client to off if no HTTPS support
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 127449c..6e633f1 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)