Skip to content

Commit 02114e6

Browse files
committed
[cmake] Include component in Sphinx install rules
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
1 parent 25801f0 commit 02114e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/modules/AddSphinxTarget.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function (add_sphinx_target builder project)
5050
if (builder STREQUAL man)
5151
# FIXME: We might not ship all the tools that these man pages describe
5252
install(DIRECTORY "${SPHINX_BUILD_DIR}/" # Slash indicates contents of
53+
COMPONENT "${project}-sphinx-man"
5354
DESTINATION share/man/man1)
5455

5556
elseif (builder STREQUAL html)
@@ -61,6 +62,7 @@ function (add_sphinx_target builder project)
6162
# the specified destination, without recreating the last component
6263
# of ${SPHINX_BUILD_DIR} implicitly.
6364
install(DIRECTORY "${SPHINX_BUILD_DIR}/."
65+
COMPONENT "${project}-sphinx-html"
6466
DESTINATION "${${project_upper}_INSTALL_SPHINX_HTML_DIR}")
6567
else()
6668
message(WARNING Installation of ${builder} not supported)

0 commit comments

Comments
 (0)