在哪里找到 CMake 构建日志以调试奇怪的 CMake 错误
在现代 CMake 版本中,构建日志位于
cmake-log-path.txt
./CMakeFiles/CMakeConfigureLog.yaml其中 ./ 指的是构建目录。该文件包含配置过程的详细信息,包括发生的任何错误。你可以用文本编辑器或 YAML 查看器打开此文件,分析构建日志并找出你可能遇到的奇怪 CMake 错误的原因。
在命令行中,使用
view-cmake-log.sh
cat ./CMakeFiles/CMakeConfigureLog.yaml通常更方便快速查看日志文件的内容。
Check out similar posts by category:
CMake
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow