From: Viktor Szakats Date: Wed, 25 Jan 2023 11:55:57 +0000 (+0000) Subject: cmake: delete redundant macro definition `SECURITY_WIN32` X-Git-Tag: curl-7_88_0~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0958b7ea1eb9c5d5c83bc3f20b4a17e568a4458;p=thirdparty%2Fcurl.git cmake: delete redundant macro definition `SECURITY_WIN32` Stop explicitly defining `SECURITY_WIN32` in CMake builds. No other build systems define this macro, because it's unconditionally defined in `lib/curl_sspi.h` already. This is the only curl source using the `sspi.h` and `security.h` Win32 headers, and no other Win32 headers need this macro. Reviewed-by: Jay Satiro Closes #10341 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ffb362f9b9..cf40054f91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -402,7 +402,6 @@ if(CURL_USE_SCHANNEL) endif() if(CURL_WINDOWS_SSPI) set(USE_WINDOWS_SSPI ON) - list(APPEND CMAKE_REQUIRED_DEFINITIONS -DSECURITY_WIN32) endif() if(CURL_USE_SECTRANSP)