string — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpThis means that the regular expression ^ab+d$ matches abbd but not ababd, and the regular expression ^(ab|cd)$ matches ab but not abd. CMake language Escape Sequences such as \t, \r, , and \\ may be used to construct literal tabs, carriage returns, newlines, and backslashes (respectively) to pass in a regex. For example:
CMake Conditionals | return EWTF;
randomguy3.wordpress.com › 2014/05/16 › cmakeMay 16, 2014 · # run with `cmake -p ` # a string on its own (or with not, and etc) is *always* expanded # as though it were a variable, whether or not it is defined if ( unsetvar ) message ( fatal_error "unsetvar evaluates to true" ) else () message ( status "unsetvar evaluates to false" ) endif () # !!! unsetvar is *not* expanded with strequal, because it does …
Quoting In CMake - Crascit
crascit.com › 2022/01/25 › quoting-in-cmakeJan 25, 2022 · Quoting With Bracket Syntax. With CMake 3.0 or later, you can use lua-style bracket syntax instead of surrounding the value with double-quotes. CMake interprets values quoted with bracket syntax literally, so you do not need to escape quotes or backslashes. This makes them very handy for defining regular expressions.