[PATCH] * Cmake: Allow specification of directory for Man installation
Export this patch
---
CMakeLists.txt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d48f68c..cf20162 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,7 +24,10 @@ ADD_CUSTOM_COMMAND(
OUTPUTS ${CMAKE_CURRENT_BINARY_DIR}/genkfs.1
)
+if (NOT DEFINED CMAKE_INSTALL_MANDIR)
+ set(CMAKE_INSTALL_MANDIR ${CMAKE_INSTALL_PREFIX}/share/man)
+endif()
INSTALL(
FILES ${CMAKE_CURRENT_BINARY_DIR}/genkfs.1
- DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1
+ DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
)
--
2.25.0