aboutsummaryrefslogtreecommitdiffstats
path: root/src/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/meson.build')
-rw-r--r--src/meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/meson.build b/src/meson.build
index a601724..a8a1d2b 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -71,6 +71,10 @@ if get_option('scanner')
],
filebase: 'wayland-scanner'
)
+
+ if meson.can_run_host_binaries()
+ meson.override_find_program('wayland-scanner', wayland_scanner)
+ endif
endif
if meson.is_cross_build() or not get_option('scanner')