meson: Clean up specification of sdbusplus dependency
The manual attempt at handling a fallback is unnecessary - let meson do
the work for us in the idiomatic way of deferring to a wrap of the same
name.
Change-Id: Ie7682771a96680a5093391bff2eaf9b4d16b6696
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/meson.build b/meson.build
index 334f01e..62c55f4 100644
--- a/meson.build
+++ b/meson.build
@@ -41,12 +41,7 @@
# i2c-tools doesn't ship a pkg-config file for libi2c
i2c = meson.get_compiler('cpp').find_library('i2c')
-sdbusplus = dependency('sdbusplus', required: false, include_type: 'system')
-if not sdbusplus.found()
- sdbusplus_proj = subproject('sdbusplus', required: true)
- sdbusplus = sdbusplus_proj.get_variable('sdbusplus_dep')
- sdbusplus = sdbusplus.as_system('system')
-endif
+sdbusplus = dependency('sdbusplus', include_type: 'system')
phosphor_logging_dep = dependency('phosphor-logging')
nlohmann_json_dep = dependency('nlohmann_json', include_type: 'system')