[PATCH] D24982: [cmake] Include component in Sphinx install rules

Michał Górny via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 27 13:06:08 PDT 2016


mgorny created this revision.
mgorny added reviewers: beanz, delcypher.
mgorny added a subscriber: llvm-commits.
Herald added subscribers: mgorny, beanz.

Include component in install rules for Sphinx targets. Based on a similar suggestion for other doc targets in D24935.


https://reviews.llvm.org/D24982

Files:
  cmake/modules/AddSphinxTarget.cmake

Index: cmake/modules/AddSphinxTarget.cmake
===================================================================
--- cmake/modules/AddSphinxTarget.cmake
+++ cmake/modules/AddSphinxTarget.cmake
@@ -50,6 +50,7 @@
       if (builder STREQUAL man)
         # FIXME: We might not ship all the tools that these man pages describe
         install(DIRECTORY "${SPHINX_BUILD_DIR}/" # Slash indicates contents of
+                COMPONENT "${project}-sphinx-man"
                 DESTINATION share/man/man1)
 
       elseif (builder STREQUAL html)
@@ -61,6 +62,7 @@
         # the specified destination, without recreating the last component
         # of ${SPHINX_BUILD_DIR} implicitly.
         install(DIRECTORY "${SPHINX_BUILD_DIR}/."
+                COMPONENT "${project}-sphinx-html"
                 DESTINATION "${${project_upper}_INSTALL_SPHINX_HTML_DIR}")
       else()
         message(WARNING Installation of ${builder} not supported)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24982.72697.patch
Type: text/x-patch
Size: 938 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160927/531be060/attachment.bin>


More information about the llvm-commits mailing list