]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
build: Make json-c dependency lookup not fail
authorDaniel Wagner <dwagner@suse.de>
Fri, 14 Apr 2023 07:54:42 +0000 (09:54 +0200)
committerDaniel Wagner <wagi@monom.org>
Fri, 14 Apr 2023 08:03:21 +0000 (10:03 +0200)
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 <dwagner@suse.de>
meson.build

index 13c2e4c17ab8820428c104b78ea2dba43dcb2516..c8c1463fac0de88dd66989233afe5f47aaa4de10 100644 (file)
@@ -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?')