Commit 2ad6976c authored by Thomas Haller's avatar Thomas Haller

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.
parent ca941823
......@@ -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)
enable_consolekit = get_option('consolekit')
if enable_consolekit
session_trackers += 'consolekit'
config_h.set_quoted('CKDB_PATH', '/var/run/ConsoleKit/database')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment