diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-05-21 14:05:38 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-05-27 21:42:10 +0200 |
commit | a84926763f153ee2a97c1882223ecf925c05ba78 (patch) | |
tree | 7abe02b5b06d478887436e8750d456b8457b98c4 | |
parent | 17a46dc5e0c814e8c5581fc3b62d67f7e5961670 (diff) | |
download | rneovim-a84926763f153ee2a97c1882223ecf925c05ba78.tar.gz rneovim-a84926763f153ee2a97c1882223ecf925c05ba78.tar.bz2 rneovim-a84926763f153ee2a97c1882223ecf925c05ba78.zip |
install: bsd: install manpages to /usr/local/man
https://svnweb.freebsd.org/ports/head/editors/neovim/Makefile?revision=428479&view=markup#l28
Closes #6771
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | cmake/InstallHelpers.cmake | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e296308d8..b67f75576b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -460,7 +460,6 @@ include(InstallHelpers) file(GLOB MANPAGES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} man/nvim.1) - install_helper( FILES ${MANPAGES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) diff --git a/cmake/InstallHelpers.cmake b/cmake/InstallHelpers.cmake index ee07ba2c66..ca20ddf354 100644 --- a/cmake/InstallHelpers.cmake +++ b/cmake/InstallHelpers.cmake @@ -1,3 +1,12 @@ +# Fix CMAKE_INSTALL_MANDIR on BSD before including GNUInstallDirs. #6771 +if(CMAKE_SYSTEM_NAME MATCHES "BSD" AND NOT DEFINED CMAKE_INSTALL_MANDIR) + if(DEFINED ENV{MANPREFIX}) + set(CMAKE_INSTALL_MANDIR "$ENV{MANPREFIX}/man") + else() + set(CMAKE_INSTALL_MANDIR "/usr/local/man") + endif() +endif() + # For $CMAKE_INSTALL_{DATAROOT,MAN, ...}DIR include(GNUInstallDirs) |