aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-03-28 09:23:18 -0700
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2019-03-29 21:27:54 +0000
commitf8afcd59e0522e47bb651e8966cd2454e8182e77 (patch)
treee8b05a3866e3291238fb20d27b1b8ebbd4421d4e /mesonbuild
parentf2d4a32370bb94e0f63ddb5f9f38d93dcab8687b (diff)
downloadmeson-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.py4
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