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)