Skip test cases/frameworks/16 sdl2 if sdl2 not found
This commit is contained in:
parent
2aa7f14223
commit
a0e98326ca
|
@ -1,6 +1,10 @@
|
|||
project('sdl2 test', 'c')
|
||||
|
||||
sdl2_dep = dependency('sdl2', version : '>=2.0.0')
|
||||
sdl2_dep = dependency('sdl2', version : '>=2.0.0', required: false)
|
||||
|
||||
if not sdl2_dep.found()
|
||||
error('MESON_SKIP_TEST sdl2 not found.')
|
||||
endif
|
||||
|
||||
e = executable('sdl2prog', 'sdl2prog.c', dependencies : sdl2_dep)
|
||||
|
||||
|
|
Loading…
Reference in New Issue