From 38fe668e58014c75cf28f7cb5fc136aa710e7039 Mon Sep 17 00:00:00 2001 From: svin <51864332+svin24@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:26:50 +0300 Subject: [PATCH] CMake: ensure the manpage location is correct (#86) --- 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)