From 53a1a7bcbd9e2da1a037bc38da6279cb06baffed Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 29 Sep 2020 13:12:23 -0400 Subject: meson: Fix cairo fallback When building with -Dcairo=enabled the first dependency('cairo', ...) call was aborting instead of returning not-found and continue with msvc checks and then again dependency() check with a fallback set. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 36fc4112..504b68b5 100644 --- a/meson.build +++ b/meson.build @@ -372,7 +372,7 @@ if host_system == 'darwin' endif cairo_found_type = '' -cairo_dep = dependency('cairo', version: cairo_req_version, required: get_option('cairo')) +cairo_dep = dependency('cairo', version: cairo_req_version, required: false) if cairo_dep.found() cairo_found_type = cairo_dep.type_name() -- cgit v1.2.1