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