From eb7f5aff5c2234296b9ec69675e02aefa6bb773d Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Sat, 28 May 2022 12:56:50 +0100 Subject: [PATCH] Fix Unix builds with PUTTY_GSSAPI=OFF. --- cmake/platforms/unix.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/platforms/unix.cmake b/cmake/platforms/unix.cmake index 6a788cb4..291d1e64 100644 --- a/cmake/platforms/unix.cmake +++ b/cmake/platforms/unix.cmake @@ -123,6 +123,10 @@ cannot provide static GSSAPI support") endif() endif() +if(PUTTY_GSSAPI STREQUAL OFF) + set(NO_GSSAPI ON) +endif() + if(STRICT AND (CMAKE_C_COMPILER_ID MATCHES "GNU" OR CMAKE_C_COMPILER_ID MATCHES "Clang")) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wpointer-arith -Wvla")