Otherwise we can't do the following workflow: if not find_program('foo', required : false).found() subproject('provides-foo') endif Where 'provides-foo' has a meson.override_find_program() on a configure_file() or similar.pull/3218/head
parent
998892ed29
commit
87c166db95
2 changed files with 11 additions and 2 deletions
@ -1,4 +1,12 @@ |
||||
project('find program override', 'c') |
||||
|
||||
subdir('subdir') |
||||
gencodegen = find_program('gencodegen', required : false) |
||||
|
||||
assert(not gencodegen.found(), 'gencodegen is an internal program, should not be found') |
||||
|
||||
# Test the check-if-found-else-override workflow |
||||
if not gencodegen.found() |
||||
subdir('subdir') |
||||
endif |
||||
|
||||
subdir('otherdir') |
||||
|
Loading…
Reference in new issue