cmake: tweak manpage install location
authorWouter van Kesteren <woutershep@gmail.com>
Mon, 9 Nov 2015 20:57:41 +0000 (21:57 +0100)
committerWouter van Kesteren <woutershep@gmail.com>
Mon, 9 Nov 2015 20:57:41 +0000 (21:57 +0100)
commit857c003e473e5c0d149db506d0e0b823e53852ab
tree0ded49c9b3008f207e3985db561348fa5e994c30
parent2ac195e8eb2c5fbbe8f2abeac92b0c8effef0e34
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/<chost>/bin, /usr/<chost>/lib respectively but
manpages should still go in /usr/share/man/ because they are
architecture independent, without this patch they go in
/usr/<chost>/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