diff --git a/meson.build b/meson.build index bc6aa1b01..7cb239b6d 100644 --- a/meson.build +++ b/meson.build @@ -194,7 +194,7 @@ if (host_machine.system() != 'darwin' and endif endif xorgsdkdir = join_paths(get_option('prefix'), get_option('includedir'), 'xorg') -libxcvt_dep = dependency('libxcvt', required: build_xorg) +libxcvt_dep = dependency('libxcvt', fallback: ['libxcvt', 'libxcvt_dep'], required: build_xorg) build_xwayland = false if (host_machine.system() != 'darwin' and @@ -211,7 +211,7 @@ if (host_machine.system() != 'darwin' and xwayland_dep = [ dependency('wayland-client', version: wayland_req, required: xwayland_required), dependency('wayland-protocols', version: wayland_protocols_req, required: xwayland_required), - dependency('libxcvt', required: xwayland_required), + dependency('libxcvt', fallback: ['libxcvt', 'libxcvt_dep'], required: xwayland_required), ] if build_glamor