[gnome-packagekit] Use newer meson features to avoid a build warning



commit b468328b4832ab79d25f9de2a30dff23720ab019
Author: Richard Hughes <richard hughsie com>
Date:   Thu Feb 7 10:37:08 2019 +0000

    Use newer meson features to avoid a build warning

 meson.build | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/meson.build b/meson.build
index fb7da50f..87bd1d4b 100644
--- a/meson.build
+++ b/meson.build
@@ -4,7 +4,7 @@
 project('gnome-packagekit', 'c',
   version : '3.30.0',
   default_options : ['warning_level=1'],
-  meson_version : '>=0.37.0'
+  meson_version : '>=0.46.0'
 )
 
 conf = configuration_data()
@@ -74,14 +74,10 @@ test_link_args = [
   '-Wl,-z,now',
 ]
 foreach arg: test_link_args
-  if cc.has_argument(arg)
-    global_link_args += arg
+  if cc.has_link_argument(arg)
+    add_project_link_arguments(arg, language : 'c')
   endif
 endforeach
-add_global_link_arguments(
-  global_link_args,
-  language: 'c'
-)
 
 gio = dependency('gio-2.0', version : '>= 2.25.9')
 gtk = dependency('gtk+-3.0', version : '>= 3.15.3')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]