8f44b9cf87
Some Unix-like systems (e.g. the BSDs) keep man pages in man/, others (e.g. Linux) keep man pages in share/man/. By using CMAKE_INSTALL_MANDIR there's no need to maintain a list of per-OS locations, and the proper location can be automatically detected. Fixes man page installation on NetBSD. Signed-off-by: Nia Alarie <nia@NetBSD.org> Signed-off-by: Nia Alarie <nia@NetBSD.org>
8 lines
192 B
CMake
8 lines
192 B
CMake
include(GNUInstallDirs)
|
|
|
|
function(install_freerdp_man manpage section)
|
|
if(WITH_MANPAGES)
|
|
install(FILES ${manpage} DESTINATION ${CMAKE_INSTALL_MANDIR}/man${section})
|
|
endif()
|
|
endfunction()
|