meson: Fix use of install_data() without specifying install_dir

This was broken (when in a subproject) before Meson 1.3.0, and so
Meson warns against this unless the project targets 1.3.0 or newer.

Signed-off-by: Joaquim Monteiro <joaquim.monteiro@protonmail.com>
(cherry picked from commit 0239b082b9)
This commit is contained in:
Joaquim Monteiro 2024-05-31 02:57:29 +01:00 committed by Simon Ser
parent 7e2ec4606e
commit cc34a7a4f1

View file

@ -131,7 +131,9 @@ if get_option('scanner')
'wayland-scanner.mk',
'protocol/wayland.xml',
'protocol/wayland.dtd',
])
],
install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'wayland'),
)
install_data(
[ 'wayland-scanner.m4' ],