cmake: pick a better IPv6 feature flag when assembling the feature list

Before this patch it used `ENABLE_IPV6`, the configuration intent.
Replace with `USE_IPV6` which is the actual setting passed to C.

The two can be different for targets without IPv6 support.

Closes #15980
This commit is contained in:
Viktor Szakats 2025-01-11 13:27:51 +01:00
parent 97164e99de
commit c4ba49ca02
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -2056,7 +2056,7 @@ message(STATUS "Protocols: ${_support_protocols_lower}")
# Clear list and try to detect available features
set(_items "")
curl_add_if("SSL" _ssl_enabled)
curl_add_if("IPv6" ENABLE_IPV6)
curl_add_if("IPv6" USE_IPV6)
curl_add_if("UnixSockets" USE_UNIX_SOCKETS)
curl_add_if("libz" HAVE_LIBZ)
curl_add_if("brotli" HAVE_BROTLI)