]> granicus.if.org Git - llvm/commitdiff
[cmake] Include component in Sphinx install rules
authorMichal Gorny <mgorny@gentoo.org>
Mon, 5 Dec 2016 09:15:05 +0000 (09:15 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Mon, 5 Dec 2016 09:15:05 +0000 (09:15 +0000)
Include component in install rules for Sphinx targets. Based on
a similar suggestion for other doc targets in D24935.

Differential Revision: https://reviews.llvm.org/D24982

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288656 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/AddSphinxTarget.cmake

index ca9f4c38ffdb513b148a07a5890e6c7a99a18738..3456b536e80acc80523a2b733dc86ea9babe1d7b 100644 (file)
@@ -50,6 +50,7 @@ function (add_sphinx_target builder project)
       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 @@ function (add_sphinx_target builder project)
         # 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)