| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Fixes: #19436
|
|
|
|
|
| |
This also adds a test to enforce the order behavior of
list(REMOVE_DUPLICATES).
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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)`
|
|
|
|
| |
Fixes: #18069
|
| |
|
|
|
|
| |
Issue: #17823
|
|
|
|
| |
Issue: #17823
|
| |
|
|
|
|
| |
Create a `list(FILTER)` command to filter lists by regular expression.
|
|
|
|
|
|
|
| |
Move failure cases from the CMake.{If,List,While,GetProperty} tests over
to the RunCMake.{if,list,while,get_property} tests to use the more
modern infrastructure. This also avoids using REGEX_ESCAPE_STRING to
try to regex-match full paths.
|
|
|
|
|
|
| |
Set the minimum required version of CMake high enough to avoid the
warning for CMAKE_LEGACY_CYGWIN_WIN32. The warning appears on stderr
and breaks the expected output matching.
|
|
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.
|