From 184db74030f627c636a11e98aabdaac301917834 Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm Date: Fri, 6 Feb 2026 09:56:03 +0100 Subject: [PATCH] install /usr by default --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 11e657f..e6bb814 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,5 +5,9 @@ project(onkioriclient LANGUAGES C) set(CMAKE_C_STANDARD 17) add_executable(${PROJECT_NAME} main.c) + +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "..." FORCE) +endif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) install(TARGETS ${PROJECT_NAME} DESTINATION bin) install(FILES onkiori.service DESTINATION /etc/systemd/system)