Use CMake's variable instead of hardcoded path to install man pages

This commit is contained in:
Yen Chi Hsuan 2017-09-23 19:14:15 +08:00 committed by Jonathan White
parent 8e8d9f39cb
commit 5a18b8de77

View File

@ -55,6 +55,6 @@ install(TARGETS keepassxc-cli
RUNTIME DESTINATION ${CLI_INSTALL_DIR} COMPONENT Runtime)
if(APPLE OR UNIX)
install(FILES keepassxc-cli.1 DESTINATION /usr/local/share/man/man1/)
install(FILES keepassxc-cli.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1/)
execute_process(COMMAND mandb -q)
endif()