Skip to content

Commit

Permalink
Fix meson warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Zoltan Fridrich <[email protected]>
  • Loading branch information
ZoltanFridrich committed Sep 21, 2023
1 parent 231878d commit 01cd3f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bash-completion/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ bashcompdir = get_option('bashcompdir')
if bashcompdir == ''
bashcomp = dependency('bash-completion', required: get_option('bash_completion'))
if bashcomp.found()
bashcompdir = bashcomp.get_pkgconfig_variable('completionsdir')
bashcompdir = bashcomp.get_variable(pkgconfig : 'completionsdir')
else
warning('Will not install bash completion due to missing dependencies!')
endif
Expand Down
2 changes: 1 addition & 1 deletion doc/manual/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if get_option('gtk_doc')

glib_prefix = get_option('glib_prefix')
if glib_prefix == ''
glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
glib_prefix = dependency('glib-2.0').get_variable(pkgconfig : 'prefix')
endif
fixxref_args = [
'--html-dir=' + (prefix / gnome.gtkdoc_html_dir(meson.project_name())),
Expand Down
4 changes: 2 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project('p11-kit', 'c',
version: '0.25.0',
meson_version: '>= 0.49')
meson_version: '>= 0.59')

version_arr = meson.project_version().split('.')
major_version = version_arr[0].to_int()
Expand Down Expand Up @@ -422,7 +422,7 @@ libsystemd_deps = []
libsystemd = dependency('libsystemd', required: get_option('systemd'))
systemd = dependency('systemd', required: get_option('systemd'))
if libsystemd.found() and systemd.found()
systemduserunitdir = systemd.get_pkgconfig_variable('systemduserunitdir')
systemduserunitdir = systemd.get_variable(pkgconfig : 'systemduserunitdir')
conf.set('WITH_SYSTEMD', 1)
libsystemd_deps += libsystemd
with_systemd = true
Expand Down

0 comments on commit 01cd3f4

Please sign in to comment.