build: use allowed over enabled or not-disabled
Meson feature options are typically in a tri-state of enabled, disabled,
or auto. The enabled and disabled functions on an option (from
`get_option`) no longer return true for auto features. Instead, the
expectation is to use `allowed()` which is true for both enabled and
auto.
Switch all uses of `enabled` to `allowed`.
Switch all uses of `not disabled` to `allowed`.
Change-Id: Iea2a2d6741d0108a592a94b141f49b553b30e61f
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meson.build b/meson.build
index b11a3eb..21af915 100644
--- a/meson.build
+++ b/meson.build
@@ -176,6 +176,6 @@
install_dir: get_option('bindir'),
)
-if not get_option('tests').disabled()
+if get_option('tests').allowed()
subdir('test')
endif