From 857c003e473e5c0d149db506d0e0b823e53852ab Mon Sep 17 00:00:00 2001 From: Wouter van Kesteren Date: Mon, 9 Nov 2015 21:57:41 +0100 Subject: [PATCH] cmake: tweak manpage install location This patch is needed when wanting to install binaries/libraries to other locations than data. The linux distro Exherbo installs binaries and libraries to /usr//bin, /usr//lib respectively but manpages should still go in /usr/share/man/ because they are architecture independent, without this patch they go in /usr//share/man unconditionally. cmake documentation states: DATAROOTDIR - read-only architecture-independent data root (share) So this patch makes it use that so that its configurable. --- client/X11/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/X11/CMakeLists.txt b/client/X11/CMakeLists.txt index 621ee9a79..3c0b1c68f 100644 --- a/client/X11/CMakeLists.txt +++ b/client/X11/CMakeLists.txt @@ -111,7 +111,7 @@ if(WITH_MANPAGES) if(OPENBSD) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/xfreerdp.1 DESTINATION man/man1) else() - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/xfreerdp.1 DESTINATION share/man/man1) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/xfreerdp.1 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/man/man1) endif() else() message(WARNING "WITH_MANPAGES was set, but xsltproc was not found. man-pages will not be installed")