meson: skip SDL2 detection if --disable-system
commit760e4327cd88a079a0688a46b13746eda0d7da23
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Aug 2020 06:09:48 +0000 (26 08:09 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Aug 2020 16:52:30 +0000 (27 18:52 +0200)
tree2efa925494fe221806c6069645d87cf89ccbef52
parentb7612f45da9ea3ff3488a34f2ffd39d0d94713fb
meson: skip SDL2 detection if --disable-system

SDL is only used for system emulation; avoid spurious warnings for
static --disable-system emulation by skipping the detection of
the library if there are no system emulation targets.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build