diff options
author | Simon Allen <simon@simonallen.org> | 2019-09-01 22:37:16 +1000 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-09-02 21:34:22 +0300 |
commit | 6a7b4be8242a38bfc097040220d36c849f778621 (patch) | |
tree | ded31faa25204632f9544bcb0bbfbb7813f661c0 | |
parent | 35732dfaa14d30756358797e3dc77f75fe60bf40 (diff) | |
download | meson-6a7b4be8242a38bfc097040220d36c849f778621.zip meson-6a7b4be8242a38bfc097040220d36c849f778621.tar.gz meson-6a7b4be8242a38bfc097040220d36c849f778621.tar.bz2 |
Handle case of dependency('threads') in 'requires'
-rw-r--r-- | mesonbuild/modules/pkgconfig.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py index 0284f3d..78fffb1 100644 --- a/mesonbuild/modules/pkgconfig.py +++ b/mesonbuild/modules/pkgconfig.py @@ -91,6 +91,8 @@ class DependenciesHelper: self.add_version_reqs(name, version_req) elif isinstance(obj, dependencies.Dependency) and not obj.found(): pass + elif isinstance(obj, dependencies.ThreadDependency): + pass else: raise mesonlib.MesonException('requires argument not a string, ' 'library with pkgconfig-generated file ' |