]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: alpha-sort feature list
authorViktor Szakats <commit@vsz.me>
Sat, 29 Jun 2024 22:26:49 +0000 (00:26 +0200)
committerViktor Szakats <commit@vsz.me>
Sun, 30 Jun 2024 09:19:37 +0000 (11:19 +0200)
Like autotools does.

Closes #14063

CMakeLists.txt

index 5a4e8c201a29a20cff87c222fb7915bcc03b78df..89e758a815cd51853ed8c8472a891d023e148930 100644 (file)
@@ -1682,6 +1682,9 @@ if(NOT CURL_DISABLE_INSTALL)
                           (USE_THREADS_POSIX AND HAVE_PTHREAD_H) OR
                           (WIN32 AND HAVE_WIN32_WINNT GREATER_EQUAL 0x600))
   _add_if("PSL"           USE_LIBPSL)
+  if(_items)
+    list(SORT _items)
+  endif()
   string(REPLACE ";" " " SUPPORT_FEATURES "${_items}")
   message(STATUS "Enabled features: ${SUPPORT_FEATURES}")