Added support for manpage construction for OpenBSD

This commit is contained in:
Bryan Everly 2015-04-24 08:38:35 -04:00
parent e61620bd8e
commit 18b335e2f2
2 changed files with 6 additions and 1 deletions

View File

@ -376,6 +376,7 @@ endif(APPLE)
# OpenBSD
if(OPENBSD)
set(WITH_MANPAGES "ON")
set(WITH_ALSA "OFF")
set(WITH_PULSE "ON")
set(WITH_WAYLAND "OFF")

View File

@ -108,7 +108,11 @@ if(WITH_MANPAGES)
add_custom_target(xfreerdp.manpage ALL
DEPENDS xfreerdp.1)
if(OPENBSD)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/xfreerdp.1 DESTINATION man/man1)
else()
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/xfreerdp.1 DESTINATION share/man/man1)
endif()
else()
message(WARNING "WITH_MANPAGES was set, but xsltproc was not found. man-pages will not be installed")
endif()