diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-03-28 09:23:18 -0700 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2019-03-29 21:27:54 +0000 |
commit | f8afcd59e0522e47bb651e8966cd2454e8182e77 (patch) | |
tree | e8b05a3866e3291238fb20d27b1b8ebbd4421d4e /mesonbuild | |
parent | f2d4a32370bb94e0f63ddb5f9f38d93dcab8687b (diff) | |
download | meson-f8afcd59e0522e47bb651e8966cd2454e8182e77.zip meson-f8afcd59e0522e47bb651e8966cd2454e8182e77.tar.gz meson-f8afcd59e0522e47bb651e8966cd2454e8182e77.tar.bz2 |
dependencies/base: Correctly handle includes and sources in ExternalDependency
These were being ignored before now.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/dependencies/base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py index a08a677..af4b13f 100644 --- a/mesonbuild/dependencies/base.py +++ b/mesonbuild/dependencies/base.py @@ -275,6 +275,10 @@ class ExternalDependency(Dependency): new.link_args = [] if not sources: new.sources = [] + if not includes: + new.include_directories = [] + if not sources: + new.sources = [] return new |