CMake Lists - Jeremi Mucha
https://jeremimucha.com/2021/03/cmake-lists15.03.2021 · Operations on lists. CMake lists can be iterated, searched, sorted, reversed, transformed. Recent versions of CMake support quite a rich set of operations – pretty much everything you’d expect is there. I’ve already shown how to define a list, let’s move on to something equally basic – appending.
CMake Lists - Jeremi Mucha
jeremimucha.com › 2021 › 03Mar 15, 2021 · A CMake list is a semicolon-separated sequence of elements. And since everything in CMake is a string, this means that a list is a semicolon-separated sequence of strings, making itself a string. Because who needs a type system, right? This may also be true the other way around – a string may be a list, but isn’t necessarily one.
list — CMake 3.23.0-rc4 Documentation
cmake.org › cmake › helplist (PREPEND <list> [<element> ...]) New in version 3.15. Insert elements to the 0th position in the list. list (REMOVE_ITEM <list> <value> [<value> ...]) Removes all instances of the given items from the list. list (REMOVE_AT <list> <index> [<index> ...]) Removes items at given indices from the list. list (REMOVE_DUPLICATES <list>)