meson: use dependency() to find libjpeg
commit8e242b3cb4cb9f7c2eeeec12a79d99a12c8e0ecf
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 Nov 2020 18:34:02 +0000 (23 13:34 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 Nov 2020 18:34:02 +0000 (23 13:34 -0500)
treea271d937eb3de7b04c1a20f46db537e9efb1b960
parent8cc30eb1400fc01f2b139cdd3dc524f8b84dbe07
meson: use dependency() to find libjpeg

Prefer pkg-config to find_library because some installations of libjpeg
may place it outside the default search path.

Reported-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build