mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-11 17:08:42 +00:00
[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
This commit is contained in:
parent
ec0b0b548e
commit
0ed8bb43a8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user