diff --git a/systemd/system/meson.build b/systemd/system/meson.build index b4b4d523c..f90f93d5a 100644 --- a/systemd/system/meson.build +++ b/systemd/system/meson.build @@ -2,7 +2,7 @@ systemd_system_unit_dir = get_option('systemd_system_unit_dir') if systemd_system_unit_dir == '' systemd = dependency('systemd', required: false) if systemd.found() - systemd_system_unit_dir = systemd.get_pkgconfig_variable('systemdsystemunitdir') + systemd_system_unit_dir = systemd.get_variable(pkgconfig: 'systemdsystemunitdir') endif endif if systemd_system_unit_dir == '' diff --git a/systemd/user/meson.build b/systemd/user/meson.build index 8411f0856..86a1fd933 100644 --- a/systemd/user/meson.build +++ b/systemd/user/meson.build @@ -2,7 +2,7 @@ systemd_user_unit_dir = get_option('systemd_user_unit_dir') if systemd_user_unit_dir == '' systemd = dependency('systemd', required: false) if systemd.found() - systemd_user_unit_dir = systemd.get_pkgconfig_variable('systemduserunitdir') + systemd_user_unit_dir = systemd.get_variable(pkgconfig: 'systemduserunitdir') endif endif if systemd_user_unit_dir == ''