string — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpMatches a pattern on either side of the | () Saves a matched subexpression, which can be referenced in the REGEX REPLACE operation. New in version 3.9: All regular expression-related commands, including e.g. if (MATCHES), save subgroup matches in the variables CMAKE_MATCH_<n> for <n> 0..9.
string
http://man.hubwiz.com › commandRegular Expressions string(REGEX MATCH <match-regex> <out-var> <input>. ... Note that two backslashes ( \\1 ) are required in CMake code to get a backslash ...
cmake:string_OceanStar的学习笔记的博客-CSDN博客_cmake string
https://blog.csdn.net/zhizhengguan/article/details/11838446801.07.2021 · CMake的基本数据类型是字符串(不区分大小写),一组字符串在一起称为列表(list)。条件判断中的取值情况如下表: 真 1, ON, YES, TRUE, Y, 非0的数 假 0, OFF, NO, FALSE, N, IGNORE, 空字符串,以“-NOTFOUND”结尾的字符串 变量显式定义 set(VAR a b c) ...