list — CMake 3.14.7 Documentation
cmake.org › cmake › helpSTRING: Sorts a list of strings alphabetically. This is the default behavior if the COMPARE option is not given. FILE_BASENAME: Sorts a list of pathnames of files by their basenames. Use the CASE keyword to select a case sensitive or case insensitive sort mode. The <case> option should be one of: SENSITIVE: List items are sorted in a case ...
cmake Tutorial => Strings and Lists
riptutorial.com › cmake › exampleIt's important to know how CMake distinguishes between lists and plain strings. When you write: set (VAR "a b c") you create a string with the value "a b c". But when you write this line without quotes: set (VAR a b c) You create a list of three items instead: "a", "b" and "c". Non-list variables are actually lists too (of a single element).
list — CMake 3.14.7 Documentation
https://cmake.org/cmake/help/v3.14/command/list.htmlIntroduction¶. 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. 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.