Document dependency('', required:false) usage. Avoid emitting 'Dependency found: NO'.pull/2735/head
parent
6d03111638
commit
87e6201214
4 changed files with 24 additions and 4 deletions
@ -0,0 +1,8 @@ |
||||
project('dep-test') |
||||
|
||||
dep = dependency('', required:false) |
||||
if dep.found() |
||||
error('not-found dependency was found') |
||||
endif |
||||
|
||||
assert(dep.type_name() == 'not-found', 'dependency should be of type "not-found" not ' + dep.type_name()) |
@ -0,0 +1,2 @@ |
||||
project('dep-test') |
||||
dep = dependency('', required:true) |
Loading…
Reference in new issue