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 <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2018-07-20 13:02:18 +10:00
committed by Jente Hidskes
parent a5a2ea1a70
commit d81c68d94f
2 changed files with 2 additions and 2 deletions

View File

@@ -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')

View File

@@ -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)')