gpt4 book ai didi

documentation - 如何使用 Sphinx 构建 CMake 文档?

转载 作者:行者123 更新时间:2023-12-03 14:30:09 26 4
gpt4 key购买 nike

在查看 CMake 源代码后,我成功配置并构建了 CMake。但是我如何构建 CMake 的文档呢?我已经安装了 Sphinx。

没有像 make doc 这样的目标并且我必须在何处调用哪个 Sphinx 命令并不明显。我在 CMake Wiki 或他们的邮件列表文件中没有找到任何提示。

最佳答案

最近我找到了答案 [1]

Configure CMake with -DSPHINX_HTML=ON. Be sure you have python-sphinx installed. Point SPHINX_EXECUTABLE at the sphinx-build command if needed.



运行 make .文档位于目录 Utilities/Sphinx/html 中.

[1] 由 CMake 开发人员 Brad King 在 CMake 开发人员邮件列表中撰写, https://cmake.org/pipermail/cmake-developers/2015-September/026567.html .

关于documentation - 如何使用 Sphinx 构建 CMake 文档?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26464879/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com