mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Treat an empty list as a list with no valid bounds and return an error message indicating that any given indices are out-of-bounds.
10 lines
424 B
ReStructuredText
10 lines
424 B
ReStructuredText
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.
|
|
|
|
* The :command:`list` operation ``REMOVE_AT`` now indicates that the given
|
|
indices are invalid for a non-existent variable or empty list.
|