]> git.ipfire.org Git - thirdparty/curl.git/commit
cmake: set HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID on Windows
authorViktor Szakats <commit@vsz.me>
Fri, 14 Oct 2022 19:06:37 +0000 (19:06 +0000)
committerViktor Szakats <commit@vsz.me>
Fri, 14 Oct 2022 19:07:16 +0000 (19:07 +0000)
commit86f2d8f67f0e4255128e448e531d91aec4cfd6be
tree09fc9117c44ca25ec6bed3c79266ff89071c9be8
parent67d88626d44ec04b9e11dca4cfbf62cd29fe9781
cmake: set HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID on Windows

`lib/config-win32.h` enables this configuration option unconditionally.
Make it apply to CMake builds as well.

While here, delete a broken check for
`HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID` from `CMakeLists.txt`. This came with
the initial commit [1], but did not include the actual verification code
inside `CMake/CurlTests.c`, so it always failed. A later commit [2]
added a second test, for non-Windows platforms.

Enabling this flag causes test 1056 to fail with CMake builds, as they
do with autotools builds. Let's apply the same solution and ignore the
results here as well.

[1] 4c5307b45655ba75ab066564afdc0c111a8b9291
[2] aec7c5a87c8482b6ddffa352d7d220698652262e

Reviewed-by: Daniel Stenberg
Assisted-by: Marcel Raad
Closes #9726
CMake/Platforms/WindowsCache.cmake
CMakeLists.txt
appveyor.yml