build: fixes libdynamiccmds build options
Fixes a mistake introduced by the previous patchset to use allowed() for
build options:
- Original:
'''
if not get_option('dynamic-sensors').disabled() or not get_option('tests').disabled()
'''
- Expected:
'''
if get_option('dynamic-sensors').allowed() or get_option('tests').allowed()
'''
- Actual:
'''
if get_option('dynamic-sensors').disabled() or not get_option('tests').allowed()
'''
This might be caused by mistakenly pattern matching the leading `not`
and trailing `disabled` without taking into account multiple conditions.
Fixes: ed7dbeff (build: use allowed over enabled or not-disabled)
Change-Id: I6a6a6964db49144b0a9d979a797a247c4e5927a6
Signed-off-by: Khang D Nguyen <khangng@os.amperecomputing.com>
diff --git a/meson.build b/meson.build
index 7aa7672..3897825 100644
--- a/meson.build
+++ b/meson.build
@@ -340,7 +340,7 @@
# Dynamic Sensor Stack
subdir('dbus-sdr')
-if get_option('dynamic-sensors').disabled() or not get_option('tests').allowed()
+if get_option('dynamic-sensors').allowed() or get_option('tests').allowed()
library(
'dynamiccmds',
dbus_sdr_src,