build: fix nlohmann-json dependency
Previously the json dependency was only added when `json-control` or
`json-config` options were enabled, but there is now base code that
utilizes nlohmann-json directly (such as logger.hpp). Add the
dependency at the top level.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia92e54f9bd4812af0977bcfa5479f093f7bdbc67
diff --git a/control/meson.build b/control/meson.build
index 447f29f..b152e96 100644
--- a/control/meson.build
+++ b/control/meson.build
@@ -102,7 +102,8 @@
dependencies: [
cli11_dep,
fmt_dep,
- sdbusplus_dep
+ json_dep,
+ sdbusplus_dep,
],
include_directories: phosphor_fan_control_include_directories,
install: true