From: Viktor Szakats Date: Sun, 30 Jun 2024 22:39:03 +0000 (+0200) Subject: cmake: sync protocol/feature list with `curl -V` output X-Git-Tag: curl-8_9_0~136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b10edb764666dffaf48a79d650ada0e668d8552;p=thirdparty%2Fcurl.git cmake: sync protocol/feature list with `curl -V` output - sort features case-insensitively. Requires CMake v3.13.0. Follow-up to 0f26abeef1dd1d1a02f8e12dbc3d51e73e9d2e9c #14063 - convert protocol list to lowercase. But leave it uppercase in `curl-config`. Closes #14066 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 307dbbce09..42b1a3415a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1698,7 +1698,11 @@ if(NOT CURL_DISABLE_INSTALL) (WIN32 AND HAVE_WIN32_WINNT GREATER_EQUAL 0x600)) _add_if("PSL" USE_LIBPSL) if(_items) - list(SORT _items) + if(NOT CMAKE_VERSION VERSION_LESS 3.13) + list(SORT _items CASE INSENSITIVE) + else() + list(SORT _items) + endif() endif() string(REPLACE ";" " " SUPPORT_FEATURES "${_items}") message(STATUS "Enabled features: ${SUPPORT_FEATURES}") @@ -1745,7 +1749,8 @@ if(NOT CURL_DISABLE_INSTALL) list(SORT _items) endif() string(REPLACE ";" " " SUPPORT_PROTOCOLS "${_items}") - message(STATUS "Enabled protocols: ${SUPPORT_PROTOCOLS}") + string(TOLOWER "${SUPPORT_PROTOCOLS}" SUPPORT_PROTOCOLS_LOWER) + message(STATUS "Enabled protocols: ${SUPPORT_PROTOCOLS_LOWER}") # Clear list and collect SSL backends set(_items)