mirror of
https://github.com/PixlOne/logiops.git
synced 2025-07-14 05:12:34 +08:00
Make DBUS_SYSTEM_POLICY_INSTALL_DIR externally overrideable
This commit is contained in:
parent
94f6dbab53
commit
b7588376e2
@ -111,9 +111,11 @@ elseif (NOT SYSTEMD_FOUND AND SYSTEMD_SERVICES_INSTALL_DIR)
|
||||
endif ()
|
||||
|
||||
# Install DBus conf
|
||||
# TODO: Is there a better way of setting the system policy directory?
|
||||
set(DBUS_SYSTEM_POLICY_INSTALL_DIR "/usr/share/dbus-1/system.d")
|
||||
configure_file(logiops-dbus.conf.in ${CMAKE_BINARY_DIR}/pizza.pixl.LogiOps.conf)
|
||||
if (NOT DEFINED DBUS_SYSTEM_POLICY_INSTALL_DIR)
|
||||
# TODO: Is there a better way of setting the system policy directory?
|
||||
set(DBUS_SYSTEM_POLICY_INSTALL_DIR "/usr/share/dbus-1/system.d")
|
||||
endif ()
|
||||
message(STATUS "dbus system policy will be installed at ${DBUS_SYSTEM_POLICY_INSTALL_DIR}")
|
||||
install(FILES ${CMAKE_BINARY_DIR}/pizza.pixl.LogiOps.conf
|
||||
DESTINATION ${DBUS_SYSTEM_POLICY_INSTALL_DIR}
|
||||
|
Loading…
Reference in New Issue
Block a user