From 8b6d40c83a8714a0d5576db2a3f756852d44c84d Mon Sep 17 00:00:00 2001 From: svin24 Date: Tue, 13 Aug 2024 09:54:58 +0300 Subject: [PATCH] ensure the manpage location is correct. For some reason the manpage is installed in the root directory. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8951986..7a78f06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -137,6 +137,10 @@ if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG) "${CMAKE_SHARED_LINKER_FLAGS} -pg -no-pie -fno-builtin") endif(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG) +if(NOT DEFINED CMAKE_INSTALL_MANDIR) + set(CMAKE_INSTALL_MANDIR "${CMAKE_INSTALL_PREFIX}/share/man") +endif() + install(TARGETS hyprpicker) install(FILES ${CMAKE_SOURCE_DIR}/doc/hyprpicker.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)