[gthumb] meson: use get_supported_arguments (requires version 0.43)



commit 5cab70f048cf27c54ed4b3c1941c233f356b7f1b
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Nov 1 14:26:43 2019 +0100

    meson: use get_supported_arguments (requires version 0.43)

 meson.build | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/meson.build b/meson.build
index 5231b62f..7346bf23 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
 project('gthumb', ['c', 'cpp'],
   license : 'GPL2+',
   version : '3.8.2',
-  meson_version : '>=0.42.1'
+  meson_version : '>=0.43'
 )
 
 glib_version = '>=2.38.0'
@@ -320,12 +320,7 @@ else
   c_args += [ '-Wno-deprecated-declarations' ]
   test_args = [ '-Wall' ]
 endif
-#c_args += c_comp.get_supported_arguments(test_args)
-foreach arg : test_args
-  if c_comp.has_argument(arg)
-    c_args += arg
-  endif
-endforeach
+c_args += c_comp.get_supported_arguments(test_args)
 
 # Subdirectories
 


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