diff --git a/meson.build b/meson.build index 43071fa23..680b189e0 100644 --- a/meson.build +++ b/meson.build @@ -244,12 +244,17 @@ libgvc = subproject('gvc', libgvc_gir = libgvc.get_variable('libgvc_gir') if get_option('extensions_tool') - subproject('extensions-tool', + extension_tool = subproject('extensions-tool', default_options: [ 'man=@0@'.format(get_option('man')), 'package_name=@0@'.format(meson.project_name()), ] ) + + extension_tool_version = extension_tool.get_variable('package_version') + assert(extension_tool_version == meson.project_version(), + 'extension-tool version does not match project version' + ) endif diff --git a/subprojects/extensions-tool/meson.build b/subprojects/extensions-tool/meson.build index bca8a8a36..0cee11234 100644 --- a/subprojects/extensions-tool/meson.build +++ b/subprojects/extensions-tool/meson.build @@ -10,6 +10,7 @@ gnome = import('gnome') i18n = import('i18n') package_name = get_option('package_name') +package_version = meson.project_version() prefix = get_option('prefix') bindir = join_paths(prefix, get_option('bindir'))