![]() Similar to the set() command, the LIST command creates new variable values in the current scope, even if the list itself is actually defined in a parent scope. The list subcommands APPEND, INSERT, FILTER, REMOVE_AT, REMOVE_ITEM, REMOVE_DUPLICATES, REVERSE and SORT may create new values for the list within the current CMake variable scope. SORT sorts the list in-place alphabetically. REVERSE reverses the contents of the list in-place. REMOVE_DUPLICATES will remove duplicated items in the list. The difference is that REMOVE_ITEM will remove the given items, while REMOVE_AT will remove the items at the given indices. REMOVE_AT and REMOVE_ITEM will remove items from the list. INSERT will insert elements to the list to the specified location. For more information on regular expressions see also the string() command.įIND will return the index of the element specified in the list or -1 if it wasn’t found. In REGEX mode, items will be matched against the given regular expression. GET will return list of elements specified by indices from the list.įILTER will include or remove items from the list that match the mode’s pattern. and locate the build folder we created.LENGTH will return a given list’s length.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |