]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: use `list(APPEND ...)` where missing
authorViktor Szakats <commit@vsz.me>
Thu, 5 Feb 2026 11:15:07 +0000 (12:15 +0100)
committerViktor Szakats <commit@vsz.me>
Thu, 5 Feb 2026 12:12:10 +0000 (13:12 +0100)
Cherry-picked from #20407

Closes #20522

CMakeLists.txt

index 66639198517ebc2f905eb6b2b6b1a5c0417d0dcd..14dcc955dedaf1b5d01d6ea22e91cf95b0111e8a 100644 (file)
@@ -1920,7 +1920,7 @@ endif()
 macro(curl_add_if _label)
   # Needs to be a macro to allow this indirection
   if(${ARGN})
-    set(_items ${_items} "${_label}")
+    list(APPEND _items "${_label}")
   endif()
 endmacro()