diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2021-09-09 00:04:54 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-09-10 08:39:37 +0000 |
commit | fe53de8bdddb9c86e5b341811872a19e16225838 (patch) | |
tree | 1a610b42147b529aa9670fe5d7165796233d03d7 | |
parent | 190bf5b3510d055d30c358427bcbcf2ee573442b (diff) | |
download | ModemManager-fe53de8bdddb9c86e5b341811872a19e16225838.tar.gz |
build,meson: Make use of feature option for introspection
-rw-r--r-- | meson.build | 5 |
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') |