cmake Tutorial => Strings and Lists
riptutorial.com › cmake › exampleExample. It'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).
string
http://man.hubwiz.com › commandSearch and Replace string(FIND <string> <substring> <out-var> [. ... Note that two backslashes ( \\1 ) are required in CMake code to get a backslash through ...