summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-02-14 00:14:06 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-02-14 00:14:06 +0200
commit1794c05d9804a496118ac33aacae3a50a12c2544 (patch)
tree0abb6a40cea2b006286a72b27a9572729655e68c
parentd0f620364f3470e2030606f280d5724e5ef8bdb1 (diff)
downloadmeson-deponlyfiles.tar.gz
Only add reconfigure deps on files, not dirs. Closes #2919.deponlyfiles
-rw-r--r--mesonbuild/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 38aca7537..8d64cc4b1 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -1711,7 +1711,7 @@ external dependencies (including libraries) must go to "dependencies".''')
for a in expanded_args:
if not os.path.isabs(a):
a = os.path.join(builddir if in_builddir else srcdir, self.subdir, a)
- if os.path.exists(a):
+ if os.path.isfile(a):
a = os.path.relpath(a, start=srcdir)
if not a.startswith('..'):
if a not in self.build_def_files: