mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
install: bsd: install manpages to /usr/local/man
https://svnweb.freebsd.org/ports/head/editors/neovim/Makefile?revision=428479&view=markup#l28 Closes #6771
This commit is contained in:
parent
17a46dc5e0
commit
a84926763f
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user