diff options
author | Asit Dhal <dhal.asitk@gmail.com> | 2021-01-07 06:30:00 (GMT) |
---|---|---|
committer | Asit Dhal <dhal.asitk@gmail.com> | 2021-01-12 07:27:40 (GMT) |
commit | 38e2299fc84aa31ca73bebf1efc9123dbc7bee1a (patch) | |
tree | 00d285e77ec9638cc43f7cbdbed884dad2e2c9e2 /Tests/CMakeTests | |
parent | 4f5a12be2924ceedc41c2da632e30e332f000f37 (diff) | |
download | CMake-38e2299fc84aa31ca73bebf1efc9123dbc7bee1a.zip CMake-38e2299fc84aa31ca73bebf1efc9123dbc7bee1a.tar.gz CMake-38e2299fc84aa31ca73bebf1efc9123dbc7bee1a.tar.bz2 |
list(REMOVE_ITEM): Make removal of an empty item a no-op.
Fixes: #21663
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r-- | Tests/CMakeTests/ListTest.cmake.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Tests/CMakeTests/ListTest.cmake.in b/Tests/CMakeTests/ListTest.cmake.in index 785f41d..76737e5 100644 --- a/Tests/CMakeTests/ListTest.cmake.in +++ b/Tests/CMakeTests/ListTest.cmake.in @@ -142,9 +142,8 @@ set(Find-List-Only-STDERR "three") set(Insert-List-Only-STDERR "at least three") set(Length-List-Only-STDERR "two") set(Remove_At-List-Only-STDERR "at least two") -set(Remove_Item-List-Only-STDERR "two or more") -foreach(cmd IN ITEMS Find Get Insert Length Remove_At Remove_Item) +foreach(cmd IN ITEMS Find Get Insert Length Remove_At) string(TOUPPER ${cmd} cmd_upper) set(${cmd}-List-Only-RESULT 1) set(${cmd}-List-Only-STDERR ".*CMake Error at List-${cmd}-List-Only.cmake:1 \\(list\\):.*list sub-command ${cmd_upper} requires ${${cmd}-List-Only-STDERR} arguments.*") |