meson: Make jack optional

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-10-19 17:48:31 +07:00 committed by Arun Raghavan
parent 2fea4c7c01
commit 68a86dded4
2 changed files with 4 additions and 1 deletions

View file

@ -280,7 +280,7 @@ if bluez_dep.found()
endif
endif
jack_dep = dependency('jack', version : '>= 0.117.0', required : false)
jack_dep = dependency('jack', version : '>= 0.117.0', required : get_option('jack'))
if jack_dep.found()
cdata.set('HAVE_JACK', 1)
endif