[PATCH] D23757: cmake: Support overriding Sphinx HTML doc install directory
Michał Górny via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 21 06:23:01 PDT 2016
mgorny updated the summary for this revision.
mgorny updated this revision to Diff 72032.
mgorny added a comment.
Herald added subscribers: mgorny, beanz.
Updated the variable name and added to docs.
https://reviews.llvm.org/D23757
Files:
cmake/modules/AddSphinxTarget.cmake
docs/CMake.rst
Index: docs/CMake.rst
===================================================================
--- docs/CMake.rst
+++ docs/CMake.rst
@@ -456,6 +456,10 @@
If enabled then sphinx documentation warnings will be treated as
errors. Defaults to ON.
+**LLVM_INSTALL_SPHINX_HTML_DIR**:STRING
+ The path to install Sphinx-generated HTML documentation to. Defaults to
+ /usr/share/doc/llvm/html.
+
**LLVM_CREATE_XCODE_TOOLCHAIN**:BOOL
OS X Only: If enabled CMake will generate a target named
'install-xcode-toolchain'. This target will create a directory at
Index: cmake/modules/AddSphinxTarget.cmake
===================================================================
--- cmake/modules/AddSphinxTarget.cmake
+++ cmake/modules/AddSphinxTarget.cmake
@@ -53,8 +53,12 @@
DESTINATION share/man/man1)
elseif (builder STREQUAL html)
- install(DIRECTORY "${SPHINX_BUILD_DIR}"
- DESTINATION "share/doc/${project}")
+ string(TOUPPER "${project}" project_upper)
+ set(${project_upper}_INSTALL_SPHINX_HTML_DIR "share/doc/${project}/html"
+ CACHE STRING "HTML documentation install directory for ${project}")
+
+ install(DIRECTORY "${SPHINX_BUILD_DIR}/."
+ DESTINATION "${${project_upper}_INSTALL_SPHINX_HTML_DIR}")
else()
message(WARNING Installation of ${builder} not supported)
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23757.72032.patch
Type: text/x-patch
Size: 1397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160921/ca6f1d78/attachment.bin>
More information about the llvm-commits
mailing list