From 552916d2d24723ef579ee54b18b8bd7b25328cf8 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Tue, 13 Mar 2018 01:38:37 +0000 Subject: pkgconfig: allow any non-found dependency requires arguments On some platforms such as OSX external dependency falls back to different dependency types if it is not found. --- mesonbuild/modules/pkgconfig.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py index 881688e..074fc5a 100644 --- a/mesonbuild/modules/pkgconfig.py +++ b/mesonbuild/modules/pkgconfig.py @@ -63,6 +63,8 @@ class DependenciesHelper: processed_reqs.append(obj.name) elif isinstance(obj, str): processed_reqs.append(obj) + elif isinstance(obj, dependencies.Dependency) and not obj.found(): + pass else: raise mesonlib.MesonException('requires argument not a string, ' 'library with pkgconfig-generated file ' -- cgit v1.1