summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2021-09-09 00:04:54 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-09-10 08:39:37 +0000
commitfe53de8bdddb9c86e5b341811872a19e16225838 (patch)
tree1a610b42147b529aa9670fe5d7165796233d03d7
parent190bf5b3510d055d30c358427bcbcf2ee573442b (diff)
downloadModemManager-fe53de8bdddb9c86e5b341811872a19e16225838.tar.gz
build,meson: Make use of feature option for introspection
-rw-r--r--meson.build5
1 files changed, 1 insertions, 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')