[build] disable krb5 support on windows
windows provides native support, no need for libkrb5
@@ -64,9 +64,11 @@ option(WITH_DEBUG_SYMBOLS "Pack debug symbols to installer" OFF)
option(WITH_NATIVE_SSPI "Use native SSPI modules" ${NATIVE_SSPI})
option(WITH_SMARTCARD_INSPECT "Enable SmartCard API Inspector" OFF)
option(WITH_DEBUG_MUTEX "Print mutex debug messages" ${DEFAULT_DEBUG_OPTION})
-option(WITH_KRB5 "Compile support for kerberos authentication. (EXPERIMENTAL)" OFF)
option(WITH_INTERNAL_MD4 "Use compiled in md4 hash functions instead of OpenSSL/MBedTLS" OFF)
option(WITH_INTERNAL_MD5 "Use compiled in md5 hash functions instead of OpenSSL/MBedTLS" OFF)
+
+if (NOT WIN32)
+ option(WITH_KRB5 "Compile support for kerberos authentication. (EXPERIMENTAL)" OFF)
if ( (WITH_KRB5) AND (NOT KRB5_FOUND))
message(WARNING "-DWITH_KRB5=ON is set, but no kerberos implementation was found, disabling")
elseif(WITH_KRB5)
@@ -84,6 +86,13 @@ elseif(WITH_KRB5)
endif()
endif()
+ include(CMakeDependentOption)
+ CMAKE_DEPENDENT_OPTION(WITH_GSS_NO_NTLM_FALLBACK "Do not fall back to NTLM if no kerberos ticket available" OFF "WITH_KRB5" OFF)
+ if (WITH_GSS_NO_NTLM_FALLBACK)
+ add_definitions("-DWITH_GSS_NO_NTLM_FALLBACK")
+ endif()
+endif()
+
# This option MUST be off to avoid symbol conflicts when loading an external SSPI module library
option(SSPI_DLL "Define and export SSPI API symbols for usage as a Windows SSPI DLL replacement" OFF)
@@ -91,12 +100,6 @@ if(SSPI_DLL)
add_definitions("-DSSPI_DLL")
endif()
-include(CMakeDependentOption)
-CMAKE_DEPENDENT_OPTION(WITH_GSS_NO_NTLM_FALLBACK "Do not fall back to NTLM if no kerberos ticket available" OFF "WITH_KRB5" OFF)
-if (WITH_GSS_NO_NTLM_FALLBACK)
- add_definitions("-DWITH_GSS_NO_NTLM_FALLBACK")
-endif()
-
option(WITH_DEBUG_NTLM "Print NTLM debug messages" ${DEFAULT_DEBUG_OPTION})
if(WITH_DEBUG_NTLM)
message(WARNING "WITH_DEBUG_NTLM=ON, the build might leak sensitive information, do not use with release builds!")
