[llvm] r288656 - [cmake] Include component in Sphinx install rules
Michal Gorny via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 5 01:15:06 PST 2016
Author: mgorny
Date: Mon Dec 5 03:15:05 2016
New Revision: 288656
URL: http://llvm.org/viewvc/llvm-project?rev=288656&view=rev
Log:
[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
Modified:
llvm/trunk/cmake/modules/AddSphinxTarget.cmake
Modified: llvm/trunk/cmake/modules/AddSphinxTarget.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddSphinxTarget.cmake?rev=288656&r1=288655&r2=288656&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddSphinxTarget.cmake (original)
+++ llvm/trunk/cmake/modules/AddSphinxTarget.cmake Mon Dec 5 03:15:05 2016
@@ -50,6 +50,7 @@ function (add_sphinx_target builder proj
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 proj
# 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)
More information about the llvm-commits
mailing list