summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorAdriaan de Groot <groot@kde.org>2021-12-21 14:34:48 (GMT)
committerBrad King <brad.king@kitware.com>2021-12-21 15:55:22 (GMT)
commite55f473ea9101fe137a046d7a9a561c82a9fbf1d (patch)
treee9591c18d2dc9cb26f6f6bb51dd27a6955c65d97 /Help
parent6afe949658ddd45efab12caf3d80f244d6a346bf (diff)
downloadCMake-e55f473ea9101fe137a046d7a9a561c82a9fbf1d.zip
CMake-e55f473ea9101fe137a046d7a9a561c82a9fbf1d.tar.gz
CMake-e55f473ea9101fe137a046d7a9a561c82a9fbf1d.tar.bz2
Help: clarify that list(APPEND) on a non-existent list creates it
This is hinted-at in the introduction, which mentions creating a new variable value in the current scope, but let's make it explicit. Fixes: #22910
Diffstat (limited to 'Help')
-rw-r--r--Help/command/list.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Help/command/list.rst b/Help/command/list.rst
index 9b49cb4..46285cc 100644
--- a/Help/command/list.rst
+++ b/Help/command/list.rst
@@ -128,7 +128,9 @@ Modification
list(APPEND <list> [<element> ...])
-Appends elements to the list.
+Appends elements to the list. If no variable named ``<list>`` exists in the
+current scope its value is treated as empty and the elements are appended to
+that empty list.
.. _FILTER: