~pixelherodev/knightos

* Cmake: Allow specification of directory for Man installation v1 APPLIED

Zach DeCook: 1
 * Cmake: Allow specification of directory for Man installation

 1 files changed, 4 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~pixelherodev/knightos/patches/9748/mbox | git am -3
Learn more about email & git
View this thread in the archives

[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