... which now avoids installing things in root.
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20170306/436814.html
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20170306/436890.html
Sorry for jumping the gun on it earlier.
Differential D30906
Revert r297545 - Revert r297516 - Respect CMAKE_INSTALL_MANDIR for sphinx generated manpages jroelofs on Mar 13 2017, 11:52 AM. Authored by
Details
... which now avoids installing things in root. http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20170306/436814.html Sorry for jumping the gun on it earlier.
Diff Detail Event TimelineComment Actions So I can't find any official documentation about CMAKE_INSTALL_MANDIR, nor do I see how it ever gets defined. @jroelofs Can you elaborate on how you ended up with this approach? PS. Sorry for the delay. I thought I submitted this comment a week ago. Comment Actions The one downside to this approach is that when you use an absolute path as the DESTINATION argument to install you can't change the install root without reconfiguring. When you use relative paths you can. Comment Actions @beanz what about something like this (untested): Index: cmake/modules/AddSphinxTarget.cmake =================================================================== --- cmake/modules/AddSphinxTarget.cmake (revision 298777) +++ cmake/modules/AddSphinxTarget.cmake (working copy) @@ -48,10 +48,15 @@ # 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) |