llvm.org GIT mirror llvm / 50982d3
Respect CMAKE_INSTALL_MANDIR for sphinx generated manpages This is a re-work of r297516, which was reverted in r297545. https://reviews.llvm.org/D30906 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299547 91177308-0d34-0410-b5e6-96231b3b80d8 Jonathan Roelofs 3 years ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
4747 # Handle installation
4848 if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
4949 if (builder STREQUAL man)
50 if (CMAKE_INSTALL_MANDIR)
51 set(INSTALL_MANDIR ${CMAKE_INSTALL_MANDIR}/)
52 else()
53 set(INSTALL_MANDIR share/man/)
54 endif()
5055 # FIXME: We might not ship all the tools that these man pages describe
5156 install(DIRECTORY "${SPHINX_BUILD_DIR}/" # Slash indicates contents of
5257 COMPONENT "${project}-sphinx-man"
53 DESTINATION share/man/man1)
58 DESTINATION ${INSTALL_MANDIR}man1)
5459
5560 elseif (builder STREQUAL html)
5661 string(TOUPPER "${project}" project_upper)