aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/182 find override/meson.build
blob: b277459052213028086b4c361f3ad36a36940307 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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')

tool = find_program('sometool')
assert(tool.found())