[pango: 1/2] meson: Fix cairo fallback




commit 53a1a7bcbd9e2da1a037bc38da6279cb06baffed
Author: Xavier Claessens <xavier claessens collabora com>
Date:   Tue Sep 29 13:12:23 2020 -0400

    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(-)
---
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()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]