summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules/AddSphinxTarget.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/cmake/modules/AddSphinxTarget.cmake')
-rw-r--r--llvm/cmake/modules/AddSphinxTarget.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/cmake/modules/AddSphinxTarget.cmake b/llvm/cmake/modules/AddSphinxTarget.cmake
index 22e3dcb776a..2bf654b60c4 100644
--- a/llvm/cmake/modules/AddSphinxTarget.cmake
+++ b/llvm/cmake/modules/AddSphinxTarget.cmake
@@ -71,6 +71,11 @@ function (add_sphinx_target builder project)
COMPONENT "${project}-sphinx-man"
DESTINATION ${INSTALL_MANDIR}man1)
+ if(NOT LLVM_ENABLE_IDE)
+ add_llvm_install_targets("install-${SPHINX_TARGET_NAME}"
+ DEPENDS ${SPHINX_TARGET_NAME}
+ COMPONENT "${project}-sphinx-man")
+ endif()
elseif (builder STREQUAL html)
string(TOUPPER "${project}" project_upper)
set(${project_upper}_INSTALL_SPHINX_HTML_DIR "share/doc/${project}/html"
@@ -82,6 +87,12 @@ function (add_sphinx_target builder project)
install(DIRECTORY "${SPHINX_BUILD_DIR}/."
COMPONENT "${project}-sphinx-html"
DESTINATION "${${project_upper}_INSTALL_SPHINX_HTML_DIR}")
+
+ if(NOT LLVM_ENABLE_IDE)
+ add_llvm_install_targets("install-${SPHINX_TARGET_NAME}"
+ DEPENDS ${SPHINX_TARGET_NAME}
+ COMPONENT "${project}-sphinx-html")
+ endif()
else()
message(WARNING Installation of ${builder} not supported)
endif()
OpenPOWER on IntegriCloud