aboutsummaryrefslogtreecommitdiff
path: root/cmake/InstallHelpers.cmake
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2015-05-17 14:45:30 -0400
committerMichael Reed <m.reed@mykolab.com>2015-05-17 14:57:43 -0400
commitaa1d9a1807198bfb17f0da38164aeed260db8713 (patch)
treebba97b34c46c79d1804b76b6c1017c3a490a530c /cmake/InstallHelpers.cmake
parentd9acfbd471403a4f11ad050665633d3311a462d9 (diff)
downloadrneovim-aa1d9a1807198bfb17f0da38164aeed260db8713.tar.gz
rneovim-aa1d9a1807198bfb17f0da38164aeed260db8713.tar.bz2
rneovim-aa1d9a1807198bfb17f0da38164aeed260db8713.zip
Build: Use GNUInstallDirs, install man pages #2649
For now, only install man pages matching "nvim*.1": we don't want to install xxd.1 as it might conflict with that of a user's Vim installation. closes #1826 Reviewed-by: Florian Walch <florian@fwalch.com> Helped-by: John Szakmeister <john@szakmeister.net>
Diffstat (limited to 'cmake/InstallHelpers.cmake')
-rw-r--r--cmake/InstallHelpers.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/InstallHelpers.cmake b/cmake/InstallHelpers.cmake
index bd03ae3875..ee07ba2c66 100644
--- a/cmake/InstallHelpers.cmake
+++ b/cmake/InstallHelpers.cmake
@@ -1,3 +1,6 @@
+# For $CMAKE_INSTALL_{DATAROOT,MAN, ...}DIR
+include(GNUInstallDirs)
+
# This will create any directories that need to be created in the destination
# path with the typical owner, group, and user permissions--independent of the
# umask setting.
@@ -107,11 +110,11 @@ function(install_helper)
if(_install_helper_TARGETS)
# Ensure the bin area exists with the correct permissions.
- create_install_dir_with_perms(DESTINATION bin)
+ create_install_dir_with_perms(DESTINATION ${CMAKE_INSTALL_BINDIR})
install(
TARGETS ${_install_helper_TARGETS}
- RUNTIME DESTINATION bin)
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
else()
create_install_dir_with_perms(
DESTINATION ${_install_helper_DESTINATION}