Only add reconfigure deps on files, not dirs. Closes #2919.

This commit is contained in:
Jussi Pakkanen 2018-02-14 00:14:06 +02:00
parent d0f620364f
commit e2b5ac29d6
1 changed files with 1 additions and 1 deletions

View File

@ -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: