Support default_options in dependency() fallbacks.

This commit is contained in:
Jussi Pakkanen 2017-01-02 18:58:05 +02:00
parent d716d53b32
commit d94f64ded1
1 changed files with 6 additions and 1 deletions

View File

@ -1798,7 +1798,12 @@ requirements use the version keyword argument instead.''')
dirname, varname = self.get_subproject_infos(kwargs)
# Try to execute the subproject
try:
self.do_subproject(dirname, {})
sp_kwargs = {}
try:
sp_kwargs['default_options'] = kwargs['default_options']
except KeyError:
pass
self.do_subproject(dirname, sp_kwargs)
# Invalid code is always an error
except InvalidCode:
raise