From 42566823f832580897f767911ed89791dd897b5d Mon Sep 17 00:00:00 2001 From: benrubson Date: Sun, 6 Aug 2017 11:26:09 +0200 Subject: [PATCH] Update FreeBSD man destination --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4829e25..111736a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -238,6 +238,11 @@ file (GLOB_RECURSE all_headers ${CMAKE_CURRENT_LIST_DIR}/*.h) add_custom_target (all_placeholder SOURCES ${all_headers}) if (POD2MAN) + set (MAN_DESTINATION "share/man/man1") + if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") + set (MAN_DESTINATION "man/man1") + endif() + add_custom_target (encfs-man ALL COMMAND ${POD2MAN} -u --section=1 --release=${ENCFS_VERSION} --center=${ENCFS_NAME} ${CMAKE_CURRENT_LIST_DIR}/encfs/encfs.pod encfs.1) @@ -247,7 +252,7 @@ if (POD2MAN) ${CMAKE_CURRENT_LIST_DIR}/encfs/encfsctl.pod encfsctl.1) install (FILES ${CMAKE_BINARY_DIR}/encfs.1 ${CMAKE_BINARY_DIR}/encfsctl.1 - DESTINATION share/man/man1) + DESTINATION ${MAN_DESTINATION}) endif (POD2MAN) add_custom_target(tests COMMAND ${CMAKE_CURRENT_LIST_DIR}/test.sh)