diff --git a/CMakeLists.txt b/CMakeLists.txt index 6663919851..14dcc955de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()