From 05c64f62ed191ec76afa838e16756c227135ed30 Mon Sep 17 00:00:00 2001 From: June Tate-Gans Date: Sun, 25 Apr 2021 12:16:47 -0500 Subject: [PATCH] cmake: Make install create /run/g13d CMake still doesn't have a way to set mode and owner/group at install time atomically, so we have to fall back and call install directly in a script. --- g13d/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/g13d/CMakeLists.txt b/g13d/CMakeLists.txt index e1e1264..7b06998 100644 --- a/g13d/CMakeLists.txt +++ b/g13d/CMakeLists.txt @@ -23,3 +23,7 @@ target_link_libraries(g13d ${libusb-1.0_LIBRARIES}) install(TARGETS g13d pbm2lpbm RUNTIME) +install(CODE " + execute_process(COMMAND install -d -m 0660 -o root -g input /run/g13d) + message(STATUS \"Install: /run/g13d\") +")