From 150a8176280b7c87a235998f0b4a98b33923148f Mon Sep 17 00:00:00 2001 From: Rafael Sadowski Date: Sun, 9 Oct 2016 11:00:12 +0200 Subject: [PATCH] fix: man(1) install directory unter OpenBSD --- grive/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/grive/CMakeLists.txt b/grive/CMakeLists.txt index 837a36d..37145f1 100644 --- a/grive/CMakeLists.txt +++ b/grive/CMakeLists.txt @@ -26,4 +26,9 @@ set_target_properties( grive_executable ) install(TARGETS grive_executable RUNTIME DESTINATION bin) -install(FILES doc/grive.1 DESTINATION share/man/man1 ) + +if ( ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" ) + install(FILES doc/grive.1 DESTINATION man/man1 ) +else ( ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" ) + install(FILES doc/grive.1 DESTINATION share/man/man1 ) +endif( ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" )