mirror of
https://github.com/ckb-next/ckb-next.git
synced 2026-10-10 12:27:21 -04:00
Don't hardcode systemd unit file install path
Use CMAKE_INSTALL_LIBDIR (provided by GNUInstallDirs module) instead of hardcoding /usr/lib.
This commit is contained in:
@@ -419,7 +419,7 @@ if ("${CKB_NEXT_INIT_SYSTEM}" STREQUAL "launchd")
|
||||
elseif ("${CKB_NEXT_INIT_SYSTEM}" STREQUAL "systemd")
|
||||
install(
|
||||
FILES "${CMAKE_CURRENT_BINARY_DIR}/service/ckb-next-daemon.service"
|
||||
DESTINATION "/usr/lib/systemd/system"
|
||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/systemd/system"
|
||||
PERMISSIONS
|
||||
OWNER_READ OWNER_WRITE
|
||||
GROUP_READ
|
||||
|
||||
Reference in New Issue
Block a user