summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorEugene Gorodinsky <eugene2k@users.noreply.github.com>2019-04-16 13:28:08 +0300
committerMax Kellermann <max@musicpd.org>2019-04-18 08:55:13 +0200
commit8d18b4c24b776fe62c39ad9ce72e1e57ac0aa3ea (patch)
treee44bfad35b0b09ce0a8ffd3dac63679288328e85 /meson.build
parentfe8621906d077344dc5439d5fc786a26a058c17e (diff)
Fix meson.build to work properly with '-Ddatabase=false'
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 466d1149d..40fe2e182 100644
--- a/meson.build
+++ b/meson.build
@@ -367,8 +367,10 @@ basic_dep = declare_dependency(
if enable_database
subdir('src/storage')
- subdir('src/db')
+else
+ storage_glue_dep = dependency('', required: false)
endif
+subdir('src/db')
if neighbor_glue_dep.found()
sources += 'src/command/NeighborCommands.cxx'