From d81c68d94f653d3dd8e6c217da58ee67d39d2412 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 20 Jul 2018 13:02:18 +1000 Subject: [PATCH] meson: change to use "-Dtests=true" instead of "enable-tests" This is more meson-like, the "enable-foo" is a autotools leftover. Signed-off-by: Peter Hutterer --- meson.build | 2 +- meson_options.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 0e2919c9..50ca0763 100644 --- a/meson.build +++ b/meson.build @@ -315,7 +315,7 @@ test_svg_files = find_program('data/gnome/check-svg.py') test('check-svg', test_svg_files, args : gnome_svg_files) #### tests #### -enable_tests = get_option('enable-tests') +enable_tests = get_option('tests') if enable_tests dep_check = dependency('check', version: '>= 0.9.10') diff --git a/meson_options.txt b/meson_options.txt index cd164b42..b5f99328 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -3,7 +3,7 @@ option('udev-dir', value: '', description: 'udev base directory [default=$prefix/lib/udev]') -option('enable-tests', +option('tests', type: 'boolean', value: true, description: 'Build the tests (default=yes)')