summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/list
Commit message (Collapse)AuthorAgeFilesLines
* list(POP_FRONT): Fix always assigning first item to output varsAlex Turbov2019-06-301-0/+13
| | | | Fixes: #19436
* Help: Clarify ordering of list(REMOVE_DUPLICATES)Kyle Edwards2019-02-272-0/+7
| | | | | This also adds a test to enforce the order behavior of list(REMOVE_DUPLICATES).
* list: add sub-commands PREPEND, POP_BACK, POP_FRONTAlex Turbov2019-02-1913-0/+212
|
* cmListCommand: handle empty lists for list(REMOVE_AT)Ben Boeckel2018-10-167-2/+19
| | | | | 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.
* cmListCommand: make list(ACTION not_a_list) succeed when idempotentBen Boeckel2018-10-1615-25/+20
| | | | | | | | | | | 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)`
* list: Allow inserting at the end of a listDaniel Chabrowski2018-07-052-2/+2
| | | | Fixes: #18069
* list: Add options to control the SORT comparison operationDaniel Franke2018-06-1327-5/+178
|
* list: Add TRANSFORM sub-commandMarc Chevrier2018-04-1696-0/+589
| | | | Issue: #17823
* list: Add SUBLIST sub-commandMarc Chevrier2018-03-2117-0/+86
| | | | Issue: #17823
* list(): add `JOIN` sub-commandMarc Chevrier2018-03-2011-0/+41
|
* list: Add FILTER subcommand (#3986)Ashley Whetter2016-02-0325-0/+61
| | | | Create a `list(FILTER)` command to filter lists by regular expression.
* Tests: Move command failure cases into RunCMake infrastructureBrad King2015-07-1445-0/+126
| | | | | | | 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.
* Cygwin: Avoid legacy warnings in RunCMake.* testsBrad King2013-08-131-1/+1
| | | | | | 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.
* list: Handle errors on empty lists more gracefully (#13138)Brad King2012-04-1711-0/+29
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.