The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
362 B
16 lines
362 B
5 years ago
|
project('find program override', 'c')
|
||
|
|
||
|
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')
|
||
5 years ago
|
|
||
|
tool = find_program('sometool')
|
||
|
assert(tool.found())
|