Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
“--trace”选项是否比“--debug-output”显示更多细节?cmake -h 解释不多。
文档似乎很清楚:
为此--debug-output_
--debug-output
在 cmake 运行期间打印额外信息,例如带有 message(SEND_ERROR) 调用的堆栈跟踪。
而--traceflag 只是让 CMake 打印它正在执行的每个命令。它有助于查看循环或宏是如何执行的,因为命令是以扁平形式输出的。
--trace