标签:configure pre 参考 doc 实现 put 说明 内容 解析
configure_file(<input> <output>
[COPYONLY] [ESCAPE_QUOTES] [@ONLY]
[NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ])
configure_file 主要实现如下两个功能:
<input> 文件里面的内容全部复制到 <output> 文件中;@VAR@ 或 ${VAR} 变量;<input> 文件里面的内容到 <output> 文件, 不进行变量的替换;@VAR@ 变量, 不替换 ${VAR} 变量\n, windows 中使用的 \r\n注意: COPYONLY 和 NEWLINE_STYLE 是冲突的,不能同时使用;
https://cmake.org/cmake/help/v3.14/command/configure_file.html?highlight=cmakedefine
标签:configure pre 参考 doc 实现 put 说明 内容 解析
原文地址:https://www.cnblogs.com/gaox97329498/p/10952732.html