Content #
To store a list, CMake concatenates all elements into a string, using a semicolon(;) as a delimiter. The following command will have exactly the same effect:
set(myList a list of five elements)
set(myList "a;list;of;five;elements")
set(myList a list "of;five;elements")
CMake automatically unpacks lists in unquoted arguments.
CMake offers a list() command that provides a multitude of subcommands to read, search, modify, and order lists. Here’s a short summary:
...