summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build2
-rw-r--r--meson_options.txt6
2 files changed, 4 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index b49e8b3..89ad75d 100644
--- a/meson.build
+++ b/meson.build
@@ -496,7 +496,7 @@ if doxygen.found()
endif
############# tests ############################
-if get_option('tests')
+if get_option('tests').enabled()
dep_libxml = dependency('libxml-2.0')
dep_dl = meson.get_compiler('c').find_library('dl')
diff --git a/meson_options.txt b/meson_options.txt
index 84c92bf..ad7c3bf 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -7,7 +7,7 @@ option('udev-dir',
value: '',
description: 'udev base directory [default=$prefix/lib/udev]')
option('tests',
- type: 'boolean',
- value: true,
- description: 'Build the tests [default=true]')
+ type: 'feature',
+ value: 'enabled',
+ description: 'Build the tests [default=enabled]')