diff options
author | Matt Turner <mattst88@gmail.com> | 2022-03-20 12:19:59 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2022-03-20 12:22:54 -0700 |
commit | 98b505675f631c1fabbbcbcee2523f8dde8e7e3d (patch) | |
tree | ced2f1d901535c320317a1ea8ba4f05e7f5be2d5 | |
parent | 3b357fe8d2687c5e869ec0d803f6bd325a4fae72 (diff) | |
download | libgweather-98b505675f631c1fabbbcbcee2523f8dde8e7e3d.tar.gz |
meson: Use dependency() for finding vapigen
This allows the vapigen binary to be chosen by overriding the VAPIGEN
environment variable.
-rw-r--r-- | libgweather/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgweather/meson.build b/libgweather/meson.build index 08311af..7148f5c 100644 --- a/libgweather/meson.build +++ b/libgweather/meson.build @@ -211,7 +211,7 @@ g_ir_scanner = find_program('g-ir-scanner', required: get_option('introspection' build_gir = get_option('introspection') and g_ir_scanner.found() and not meson.is_cross_build() enable_vala = get_option('enable_vala') -vapigen = find_program('vapigen', required: enable_vala == 'true') +vapigen = dependency('vapigen', required: enable_vala == 'true') if enable_vala == 'auto' or enable_vala == 'true' build_vapi = vapigen.found() and get_option('introspection') if enable_vala == 'true' and not build_vapi |