[llvm] r299547 - Respect CMAKE_INSTALL_MANDIR for sphinx generated manpages
Jonathan Roelofs via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 5 07:49:46 PDT 2017
Author: jroelofs
Date: Wed Apr 5 09:49:46 2017
New Revision: 299547
URL: http://llvm.org/viewvc/llvm-project?rev=299547&view=rev
Log:
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
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=299547&r1=299546&r2=299547&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddSphinxTarget.cmake (original)
+++ llvm/trunk/cmake/modules/AddSphinxTarget.cmake Wed Apr 5 09:49:46 2017
@@ -48,10 +48,15 @@ function (add_sphinx_target builder proj
# Handle installation
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
if (builder STREQUAL man)
+ if (CMAKE_INSTALL_MANDIR)
+ set(INSTALL_MANDIR ${CMAKE_INSTALL_MANDIR}/)
+ else()
+ set(INSTALL_MANDIR share/man/)
+ endif()
# 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)
+ DESTINATION ${INSTALL_MANDIR}man1)
elseif (builder STREQUAL html)
string(TOUPPER "${project}" project_upper)
More information about the llvm-commits
mailing list