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:
Ryan Fitzsimon
2018-10-20 12:53:48 +10:00
parent 89cc511cee
commit 4e9b70c316
+1 -1
View File
@@ -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