Commit f7eb1c9a authored by Michiel Beijen's avatar Michiel Beijen Committed by Max Kellermann

Fix meson build warning for get_pkgconfig_variable

Otherwise, building will generate these warnings: systemd/system/meson.build:5: WARNING: Project targeting '>= 0.56.0' but tried to use feature deprecated since '0.56.0': Dependency.get_pkgconfig_variable. use Dependency.get_variable(pkgconfig : ...) instead systemd/user/meson.build:5: WARNING: Project targeting '>= 0.56.0' but tried to use feature deprecated since '0.56.0': Dependency.get_pkgconfig_variable. use Dependency.get_variable(pkgconfig : ...) instead
parent 2d22e6de
...@@ -2,7 +2,7 @@ systemd_system_unit_dir = get_option('systemd_system_unit_dir') ...@@ -2,7 +2,7 @@ systemd_system_unit_dir = get_option('systemd_system_unit_dir')
if systemd_system_unit_dir == '' if systemd_system_unit_dir == ''
systemd = dependency('systemd', required: false) systemd = dependency('systemd', required: false)
if systemd.found() if systemd.found()
systemd_system_unit_dir = systemd.get_pkgconfig_variable('systemdsystemunitdir') systemd_system_unit_dir = systemd.get_variable(pkgconfig: 'systemdsystemunitdir')
endif endif
endif endif
if systemd_system_unit_dir == '' if systemd_system_unit_dir == ''
......
...@@ -2,7 +2,7 @@ systemd_user_unit_dir = get_option('systemd_user_unit_dir') ...@@ -2,7 +2,7 @@ systemd_user_unit_dir = get_option('systemd_user_unit_dir')
if systemd_user_unit_dir == '' if systemd_user_unit_dir == ''
systemd = dependency('systemd', required: false) systemd = dependency('systemd', required: false)
if systemd.found() if systemd.found()
systemd_user_unit_dir = systemd.get_pkgconfig_variable('systemduserunitdir') systemd_user_unit_dir = systemd.get_variable(pkgconfig: 'systemduserunitdir')
endif endif
endif endif
if systemd_user_unit_dir == '' if systemd_user_unit_dir == ''
......
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