meson: adjust nlohmann-json dependency
Simplify nlohmann-json dependency logic and align the wrap file name
with other repositories.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I916a1995fc000c24b78af63907d815c10aa8f44c
diff --git a/meson.build b/meson.build
index 7383ce8..20a440d 100644
--- a/meson.build
+++ b/meson.build
@@ -47,21 +47,14 @@
root_inc = include_directories('.', 'include')
# Dependencies
-sdbusplus_dep = dependency('sdbusplus')
+nlohmann_json_dep = dependency('nlohmann_json', include_type: 'system')
phosphor_dbus_interfaces_dep = dependency('phosphor-dbus-interfaces')
phosphor_logging_dep = dependency('phosphor-logging')
+sdbusplus_dep = dependency('sdbusplus')
ipmid_dep = dependency('libipmid')
channellayer_dep = dependency('libchannellayer')
userlayer_dep = dependency('libuserlayer')
-if cpp.has_header_symbol(
- 'nlohmann/json.hpp',
- 'nlohmann::json::string_t',
- required:false)
- nlohmann_json_dep = declare_dependency()
-else
- nlohmann_json_dep = dependency('nlohmann-json')
-endif
tinyxml_dep = dependency('tinyxml2',
default_options: ['tests=false'],