build: check wayland-scanner version

We need the --strict flag, released in wayland 1.14.0.

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2020-01-13 19:27:19 +01:00
parent bfd4362fc2
commit fab3cb3bfe
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ pkgconfig.generate(
)
if meson.is_cross_build()
scanner_dep = dependency('wayland-scanner', native: true)
scanner_dep = dependency('wayland-scanner', native: true, version: '>=1.14.0')
wayland_scanner_for_build = find_program(scanner_dep.get_pkgconfig_variable('wayland_scanner'))
else
wayland_scanner_for_build = wayland_scanner