Skip to content

Commit

Permalink
curl-cmake.sh: fix to enable SSPI only for Windows [ci skip]
Browse files Browse the repository at this point in the history
Nor the source neither CMake sanity checks this, so build breaks on
non-Windows when enabling SSPI.
  • Loading branch information
vszakats committed Mar 6, 2024
1 parent 50861b0 commit c1b7df9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions curl-cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1b7df9

Please sign in to comment.