If first checking for a dependency as not-required, and then later checking for the same dependency again as required, we would not error out saying the dependency is missing, but just silently re-use the cached dependency object from the first check and then likely fail at build time if the dependency is not actually there. With test case. Fixes #964.pull/987/head
parent
f1c909c41a
commit
aeaccdc418
2 changed files with 11 additions and 0 deletions
@ -0,0 +1,4 @@ |
||||
project('dep-test', 'c', version : '1.0') |
||||
|
||||
foo_dep = dependency('foo-bar-xyz-12.3', required : false) |
||||
bar_dep = dependency('foo-bar-xyz-12.3', required : true) |
Loading…
Reference in new issue