From: Daniel Wagner Date: Fri, 14 Apr 2023 07:54:42 +0000 (+0200) Subject: build: Make json-c dependency lookup not fail X-Git-Tag: v1.5~51 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=842c6767f0efba25be03704578b92f5ea041fb1b;p=users%2Fsagi%2Flibnvme.git build: Make json-c dependency lookup not fail Let's relax the dependency on json-c, when the command list option is set to auto. It will just ignore the dependency if not found Signed-off-by: Daniel Wagner --- diff --git a/meson.build b/meson.build index 13c2e4c1..c8c1463f 100644 --- a/meson.build +++ b/meson.build @@ -57,7 +57,7 @@ if get_option('json-c').disabled() else json_c_dep = dependency('json-c', version: '>=0.13', - required: true, + required: get_option('json-c'), fallback : ['json-c', 'json_c_dep']) endif conf.set('CONFIG_JSONC', json_c_dep.found(), description: 'Is json-c required?')