From be365526e768f7d5234f5af71832c589331bb3b6 Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Tue, 31 Mar 2020 12:53:44 +0200 Subject: [PATCH] Fix the install rules for executables --- src/invoker/CMakeLists.txt | 2 +- src/single-instance/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invoker/CMakeLists.txt b/src/invoker/CMakeLists.txt index 6531ca0..3a35a6b 100644 --- a/src/invoker/CMakeLists.txt +++ b/src/invoker/CMakeLists.txt @@ -19,6 +19,6 @@ add_executable(invoker ${SRC}) target_link_libraries(invoker ${DBUS_LDFLAGS}) # Add install rule -install(PROGRAMS invoker DESTINATION /usr/bin/) +install(TARGETS invoker DESTINATION /usr/bin/) diff --git a/src/single-instance/CMakeLists.txt b/src/single-instance/CMakeLists.txt index cc04ba2..acc1439 100644 --- a/src/single-instance/CMakeLists.txt +++ b/src/single-instance/CMakeLists.txt @@ -26,4 +26,4 @@ link_libraries(${DBUS_LDFLAGS}) add_executable(single-instance ${SRC}) # Add install rule -install(PROGRAMS single-instance DESTINATION /usr/bin/) +install(TARGETS single-instance DESTINATION /usr/bin/)