build: add wrapfile for libgpiod
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I6e9b3f12bcf05e60278457e561c29eeff4472585
diff --git a/meson.build b/meson.build
index 211d855..127fa2c 100644
--- a/meson.build
+++ b/meson.build
@@ -23,7 +23,11 @@
)
build_tests = get_option('tests')
-gpiodcxx = dependency('libgpiodcxx')
+gpiodcxx = dependency(
+ 'libgpiodcxx',
+ fallback: ['libgpiod', 'gpiodcxx_dep'],
+ default_options: ['bindings=cxx'],
+)
# i2c-tools doesn't ship a pkg-config file for libi2c
i2c = meson.get_compiler('cpp').find_library('i2c')