29 lines
1.4 KiB
Diff
29 lines
1.4 KiB
Diff
From 938167799926ad70849d8088bdef023b5e8a0700 Mon Sep 17 00:00:00 2001
|
|
From: Alexander Gehrke <void@qwertyuiop.de>
|
|
Date: Tue, 25 May 2021 20:11:29 +0000
|
|
Subject: [PATCH] Fix CMake failing because of missing Systemd service dir
|
|
|
|
---
|
|
CMakeLists.txt | 5 -----
|
|
1 file changed, 5 deletions(-)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index dee220d..13b773f 100755
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -76,11 +76,6 @@ include(GNUInstallDirs)
|
|
set(SYSTEM_CONFIG_FILE_PATH "${CMAKE_INSTALL_FULL_DATAROOTDIR}/touchegg/touchegg.conf")
|
|
target_compile_definitions(touchegg PUBLIC SYSTEM_CONFIG_FILE_PATH=\"${SYSTEM_CONFIG_FILE_PATH}\")
|
|
|
|
-# configure systemd service unit to use the right path, e.g. @CMAKE_INSTALL_BINDIR@/touchegg
|
|
-configure_file(${PROJECT_SOURCE_DIR}/installation/touchegg.service.in ${PROJECT_SOURCE_DIR}/installation/touchegg.service @ONLY)
|
|
-pkg_get_variable(SYSTEMD_SERVICE_DIR systemd systemdsystemunitdir)
|
|
-
|
|
install(FILES ${PROJECT_SOURCE_DIR}/installation/touchegg.conf DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/touchegg) # /usr/share/touchegg/touchegg.conf
|
|
-install(FILES ${PROJECT_SOURCE_DIR}/installation/touchegg.service DESTINATION ${SYSTEMD_SERVICE_DIR})
|
|
install(FILES ${PROJECT_SOURCE_DIR}/installation/touchegg.desktop DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/xdg/autostart)
|
|
install(PROGRAMS ${PROJECT_BINARY_DIR}/touchegg DESTINATION ${CMAKE_INSTALL_BINDIR}) # /usr/bin/touchegg
|
|
--
|
|
2.31.1
|
|
|