]> xenbits.xensource.com Git - libvirt.git/commit
meson: Fix yajl workaround
authorAndrea Bolognani <abologna@redhat.com>
Sat, 8 Jan 2022 10:36:47 +0000 (11:36 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 10 Jan 2022 08:46:06 +0000 (09:46 +0100)
commitc97075e1e46e9305d62620d8b05046aae0139438
tree848bc47680b52dc16663a9464e1ac2ce8cbe56bc
parentad37e05e2667e3fb0eda25f5901438fbe22edeb2
meson: Fix yajl workaround

Meson reports

  WARNING: pkgconfig variable 'cflags' not defined for dependency yajl.

which makes sense, because "cflags" is not one of the variables
reported by

  $ pkg-config --print-variables yajl

and

  $ pkg-config --variable=cflags yajl

doesn't work either.

The breakage was introduced when we switched from calling
pkg-config directly to using get_pkgconfig_variable() in 7.5.0
and, somehow, it went undetected until now.

Use "includedir", which is a proper pkg-config variable,
instead.

Fixes: c32c5ca29aeb63d329e2c1e60e249246c010f2f3
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Tested-by: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
meson.build