diff options
author | Michal Gorny <mgorny@gentoo.org> | 2016-12-05 09:15:05 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2016-12-05 09:15:05 +0000 |
commit | 0ed8bb43a8b8cf39a752db51aca9c00a5d9edd79 (patch) | |
tree | ee439b0ed7572069ba50d5816ce21466017b1a90 /llvm/cmake/modules/AddSphinxTarget.cmake | |
parent | ec0b0b548e1cfbe9ea4e9d3fc1c0f68e753818a0 (diff) | |
download | bcm5719-llvm-0ed8bb43a8b8cf39a752db51aca9c00a5d9edd79.tar.gz bcm5719-llvm-0ed8bb43a8b8cf39a752db51aca9c00a5d9edd79.zip |
[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
llvm-svn: 288656
Diffstat (limited to 'llvm/cmake/modules/AddSphinxTarget.cmake')
-rw-r--r-- | llvm/cmake/modules/AddSphinxTarget.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/cmake/modules/AddSphinxTarget.cmake b/llvm/cmake/modules/AddSphinxTarget.cmake index ca9f4c38ffd..3456b536e80 100644 --- a/llvm/cmake/modules/AddSphinxTarget.cmake +++ b/llvm/cmake/modules/AddSphinxTarget.cmake @@ -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) |