From cdb8aa13d12c251b9fd85f57305af3a7aab18038 Mon Sep 17 00:00:00 2001 From: hexchain Date: Tue, 22 Oct 2024 21:38:34 +0800 Subject: [PATCH] Use a relative path in LINUX_SYSTEMD_UNITDIR --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c7d99535..d8b1c925 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,7 +77,7 @@ if(UNIX) # APPLE, LINUX, FREE_BSD endif() if(NOT DEFINED LINUX_SYSTEMD_UNITDIR) - set(LINUX_SYSTEMD_UNITDIR /usr/lib/systemd/system) + set(LINUX_SYSTEMD_UNITDIR "${CMAKE_INSTALL_LIBDIR}/systemd/system") endif() if(LINUX_SYSTEMD)