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.
pull/3241/head
Aleksey Filippov 7 years ago committed by Jussi Pakkanen
parent 6e83e41af7
commit 552916d2d2
  1. 2
      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 '

Loading…
Cancel
Save