mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 17:50:16 +01:00
build/meson: fix build with -D session_tracking=no -D systemdsystemunitdir=no
The variable enable_consolekit is used below, outside the if. We always must set it.
This commit is contained in:
parent
ca9418232c
commit
2ad6976cd4
1 changed files with 2 additions and 1 deletions
|
|
@ -402,6 +402,8 @@ session_tracking = get_option('session_tracking')
|
|||
session_trackers = []
|
||||
enable_session_tracking = (session_tracking != 'no')
|
||||
|
||||
enable_consolekit = get_option('consolekit')
|
||||
|
||||
if enable_session_tracking
|
||||
if session_tracking == 'systemd'
|
||||
logind_dep = libsystemd_dep
|
||||
|
|
@ -418,7 +420,6 @@ if enable_session_tracking
|
|||
config_h.set('SESSION_TRACKING_ELOGIND', true)
|
||||
endif
|
||||
|
||||
enable_consolekit = get_option('consolekit')
|
||||
if enable_consolekit
|
||||
session_trackers += 'consolekit'
|
||||
config_h.set_quoted('CKDB_PATH', '/var/run/ConsoleKit/database')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue