mirror of
https://github.com/reactos/CMake.git
synced 2024-12-15 23:57:44 +00:00
05604eb9cb
Since commit ed1ea24c
(Fix INSERT to allow inserting to empty list,
2006-05-15) the list command allows insertion into an empty list at
index 0. Fix rejection of insertion at non-zero (negative) indices to
present an error message instead of crashing.
While at it, fix the error message of the GET and REMOVE_AT operations
when the list is empty to not present a bogus allowed range.
Add a "RunCMake.list" test to cover failure cases on empty lists.
5 lines
153 B
Plaintext
5 lines
153 B
Plaintext
CMake Error at EmptyRemoveAt0.cmake:2 \(list\):
|
|
list REMOVE_AT given empty list
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)$
|