From c1b7df9c355215aca4b1b68716f960147a2982cd Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 6 Mar 2024 16:55:08 +0000 Subject: [PATCH] curl-cmake.sh: fix to enable SSPI only for Windows [ci skip] Nor the source neither CMake sanity checks this, so build breaks on non-Windows when enabling SSPI. --- curl-cmake.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/curl-cmake.sh b/curl-cmake.sh index 261865411..03b4c47f1 100755 --- a/curl-cmake.sh +++ b/curl-cmake.sh @@ -129,10 +129,12 @@ _VER="$1" fi fi - if [ "${CURL_VER_}" = '8.6.0' ]; then - CPPFLAGS+=' -DUSE_WINDOWS_SSPI' - else - options+=' -DCURL_WINDOWS_SSPI=ON' + if [ "${_OS}" = 'win' ]; then + if [ "${CURL_VER_}" = '8.6.0' ]; then + CPPFLAGS+=' -DUSE_WINDOWS_SSPI' + else + options+=' -DCURL_WINDOWS_SSPI=ON' + fi fi if [[ "${_CONFIG}" = *'nocookie'* ]]; then