summary refs log tree commit diff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build9
1 files changed, 8 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index c6e1d02..feacad8 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,14 @@
 project('domagi', 'c')
 
 cc = meson.get_compiler('c')
-duckdb = dependency('DuckDB')
+
+duckdb = dependency('DuckDB', required: false)
+# If pkg-config and cmake dependency discovery failed, fall back to
+# looking for the library manually.
+if not duckdb.found()
+  duckdb = cc.find_library('duckdb')
+endif
+
 omp = dependency('openmp')
 if cc.has_header('verstable.h')
   verstable = declare_dependency()