From fe53de8bdddb9c86e5b341811872a19e16225838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Mart=C3=ADnez?= Date: Thu, 9 Sep 2021 00:04:54 +0200 Subject: build,meson: Make use of feature option for introspection --- meson.build | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/meson.build b/meson.build index b91780931..515f63df5 100644 --- a/meson.build +++ b/meson.build @@ -254,10 +254,7 @@ endif util_dep = cc.find_library('util') # introspection support -enable_gir = get_option('introspection') -if enable_gir - dependency('gobject-introspection-1.0', version: '>= 0.9.6') -endif +enable_gir = dependency('gobject-introspection-1.0', version: '>= 0.9.6', required: get_option('introspection')).found() # vala support enable_vapi = get_option('vapi') -- cgit v1.2.1