string — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpJoin all the <input> arguments together using the <glue> string and store the result in the named <output_variable>. To join a list's elements, prefer to use the JOIN operator from the list() command. This allows for the elements to have special characters like ; in them.
What is common way to split string into list with CMAKE ...
coderedirect.com › questions › 254638words = line.split() print(list(map(' '.join, zip(words[:-1], words[1:])))) This outputs: ['Lorem ipsum', 'ipsum dolor', 'dolor sit', 'sit amet,', 'amet, consectetur', 'consectetur adipiscing', 'adipiscing elit,', 'elit, sed', 'sed do', 'do eiusmod', 'eiusmod tempor', 'tempor incididunt', 'incididunt ut', 'ut labore', 'labore et', 'et dolore', 'dolore magna', 'magna aliqua.']
list — CMake 3.23.0-rc4 Documentation
https://cmake.org/cmake/help/latest/command/list.htmlNote. When specifying index values, if <element index> is 0 or greater, it is indexed from the beginning of the list, with 0 representing the first list element. If <element index> is -1 or lesser, it is indexed from the end of the list, with -1 representing the last list element. Be careful when counting with negative indices: they do not start from 0. -0 is equivalent to 0, the first list elem
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).