summaryrefslogtreecommitdiffstats
path: root/Help/release
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2018-10-11 21:23:12 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2018-10-16 18:31:39 (GMT)
commitacfe53c58817c662b935fbe0f0443de298371731 (patch)
tree7b2e3dcee64622cbc0f2d514cd0b2727c0ddbc0d /Help/release
parentbf572ac952d7ddf2b7208efc56f104844aea72e2 (diff)
downloadCMake-acfe53c58817c662b935fbe0f0443de298371731.zip
CMake-acfe53c58817c662b935fbe0f0443de298371731.tar.gz
CMake-acfe53c58817c662b935fbe0f0443de298371731.tar.bz2
cmListCommand: make list(ACTION not_a_list) succeed when idempotent
The operations changed here all are no-ops on empty lists anyways, so just have them succeed when given non-extant lists. - `list(REMOVE_ITEM)` - `list(REMOVE_DUPLICATES)` - `list(SORT)` - `list(FILTER)` - `list(REVERSE)`
Diffstat (limited to 'Help/release')
-rw-r--r--Help/release/dev/better-empty-list-behavior.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Help/release/dev/better-empty-list-behavior.rst b/Help/release/dev/better-empty-list-behavior.rst
new file mode 100644
index 0000000..12a131f
--- /dev/null
+++ b/Help/release/dev/better-empty-list-behavior.rst
@@ -0,0 +1,6 @@
+better-empty-list-behavior
+--------------------------
+
+* The :command:`list` operations ``REMOVE_ITEM``, ``REMOVE_DUPLICATES``,
+ ``SORT``, ``REVERSE``, and ``FILTER`` all now accept a non-existent variable
+ as the list since these operations on empty lists is also the empty list.