meson: adjust nlohmann-json dependency
Simplify the dependency logic and align wrap file directives with
other repositories.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I61209bcd25995ef447c790e59ad717c1192acbc2
diff --git a/meson.build b/meson.build
index b28fc5e..83a1f4f 100644
--- a/meson.build
+++ b/meson.build
@@ -128,14 +128,7 @@
link_with: sys_lib)
blobs_dep = dependency('phosphor-ipmi-blobs')
-
-cpp = meson.get_compiler('cpp')
-
-if cpp.has_header('nlohmann/json.hpp')
- json_dep = declare_dependency()
-else
- json_dep = dependency('nlohmann_json')
-endif
+nlohmann_json_dep = dependency('nlohmann_json', include_type: 'system')
if not get_option('tests').disabled()
gtest = dependency('gtest', main: true, disabler: true, required: false)