From: Viktor Szakats Date: Sat, 11 Jan 2025 12:27:51 +0000 (+0100) Subject: cmake: pick a better IPv6 feature flag when assembling the feature list X-Git-Tag: curl-8_12_0~140 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4ba49ca02178df5aac2176836cbecc7b44ae0ce;p=thirdparty%2Fcurl.git 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 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b6ac4231ca..527e6c8157 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)