aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-11-25 06:12:20 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-11-25 06:12:20 +0100
commit5b64c639ac8ab815ae69624d9ddf0805b17247c8 (patch)
treefc8727ceb3f6b82e17a2ebcbb0d956cb183f806e
parent8096a1b2c9759a1ca28791994616b360a7f32329 (diff)
downloaddesktop-tools-master.tar.gz
desktop-tools-master.tar.xz
desktop-tools-master.zip
CMakeLists.txt: don't enforce setuid bitHEADorigin/mastermaster
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e511efa..e9d617c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -96,6 +96,7 @@ endif ()
# These should be accessible by users, but need to touch system devices.
# Use the setuid bit, for simplicity.
+set (SETUID "SETUID" CACHE STRING "Set this empty on permission issues")
foreach (target brightness input-switch)
if (${target} IN_LIST targets)
list (REMOVE_ITEM targets ${target})
@@ -104,7 +105,7 @@ foreach (target brightness input-switch)
OWNER_WRITE OWNER_READ OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE
WORLD_READ WORLD_EXECUTE
- SETUID)
+ ${SETUID})
endif ()
endforeach ()