From bcf368626cb33c4d8bf1c0c8fd1dcafb3c9f8d53 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 21 Sep 2020 09:46:16 -0700 Subject: capstone: Require version 4.0 from a system library MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We're about to use a portion of the 4.0 API. Reject a system library version prior to that. Tested-by: Alex Bennée Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 8d6fb80..ccad7ca 100644 --- a/meson.build +++ b/meson.build @@ -737,8 +737,8 @@ capstone = not_found capstone_opt = get_option('capstone') if capstone_opt in ['enabled', 'auto', 'system'] have_internal = fs.exists(meson.current_source_dir() / 'capstone/Makefile') - capstone = dependency('capstone', static: enable_static, - method: 'pkg-config', + capstone = dependency('capstone', version: '>=4.0', + static: enable_static, method: 'pkg-config', required: capstone_opt == 'system' or capstone_opt == 'enabled' and not have_internal) if capstone.found() -- cgit v1.1