Use CMAKE_INSTALL_MANDIR

Install manpages in the system's manpage folder instead of using
CMAKE_INSTALL_DATADIR. This allows to respect manpage hierarchy
on any OS.
This commit is contained in:
Charlène Wendling 2020-12-22 03:34:07 +01:00
parent 1ff9a82e80
commit 2d010eeb38
1 changed files with 1 additions and 1 deletions

View File

@ -39,6 +39,6 @@ if(UNIX AND NOT APPLE)
${CMAKE_BINARY_DIR}/fwb_ipt.1.gz
${CMAKE_BINARY_DIR}/fwb_pf.1.gz
${CMAKE_BINARY_DIR}/fwb_pix.1.gz
DESTINATION ${CMAKE_INSTALL_DATADIR}/man/man1)
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
endif(UNIX AND NOT APPLE)