From d8a44988038749b501498582ea8788cae86e6df8 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Tue, 12 May 2015 13:18:16 +0200 Subject: [PATCH] Add user option -DMAN_INSTALL_DIR=path to CMakeLists.txt - see #193 Seems this is required to accomodate different man install directories used by Slackware, BSD and perhaps others. --- CMakeLists.txt | 5 ++++- version.txt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ce2ee17..5aac7dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,9 @@ set( LIB_TYPE STATIC ) # set default static option( BUILD_SHARED_LIB "Set ON to build Shared (DLL) Library" OFF ) option( BUILD_TAB2SPACE "Set ON to build utility app, tab2space" OFF ) option( BUILD_SAMPLE_CODE "Set ON to build the sample code" OFF ) +if (NOT MAN_INSTALL_DIR) + set(MAN_INSTALL_DIR share/man/man1) +endif () if(CMAKE_COMPILER_IS_GNUCXX) set( WARNING_FLAGS -Wall ) @@ -213,7 +216,7 @@ if (UNIX) VERBATIM ) - install(FILES ${CMAKE_BINARY_DIR}/${TIDY_MANFILE} DESTINATION share/man/man1) + install(FILES ${CMAKE_BINARY_DIR}/${TIDY_MANFILE} DESTINATION ${MAN_INSTALL_DIR}) endif () endif () diff --git a/version.txt b/version.txt index 4d94c45..680f833 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -4.9.26 \ No newline at end of file +4.9.27 \ No newline at end of file