summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-11-04 14:10:03 +0100
committerMax Kellermann <max@musicpd.org>2019-11-04 14:10:03 +0100
commit129d8e89b9189d88e4da970ed642f4b9ca731574 (patch)
treeac03682cfd8c5f477ebfbdb918362042087ceb1e /src/lib
parent65778a377473bf9034c23a93e8fed5a65af5decf (diff)
lib/sqlite: disable if -Ddatabase=false
Fixes build failure in StickerCommands.cxx.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/sqlite/meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/sqlite/meson.build b/src/lib/sqlite/meson.build
index dcaf9e267..8f1fccbfb 100644
--- a/src/lib/sqlite/meson.build
+++ b/src/lib/sqlite/meson.build
@@ -1,4 +1,9 @@
-sqlite_dep = dependency('sqlite3', version: '>= 3.7.3', required: get_option('sqlite'))
+if enable_database
+ sqlite_dep = dependency('sqlite3', version: '>= 3.7.3', required: get_option('sqlite'))
+else
+ sqlite_dep = dependency('', required: false)
+endif
+
conf.set('ENABLE_SQLITE', sqlite_dep.found())
if not sqlite_dep.found()
subdir_done()