diff --git a/test cases/frameworks/9 wxwidgets/meson.build b/test cases/frameworks/9 wxwidgets/meson.build index 3160b94962a4..85a4c23d7b43 100644 --- a/test cases/frameworks/9 wxwidgets/meson.build +++ b/test cases/frameworks/9 wxwidgets/meson.build @@ -5,17 +5,18 @@ project('wxwidgets test', 'cpp', default_options : ['cpp_std=c++11']) wxd = dependency('wxwidgets', version : '>=5', required : false) wxd = dependency('wxwidgets', version : '>=3.0.0', required : false) -if wxd.found() - wp = executable('wxprog', 'wxprog.cpp', dependencies : wxd) +if not wxd.found() + error('MESON_SKIP_TEST: wxwidgets dependency not found') +endif - test('wxtest', wp) +wp = executable('wxprog', 'wxprog.cpp', dependencies : wxd) - # WxWidgets framework is available, we can use required here - wx_stc = dependency('wxwidgets', version : '>=3.0.0', modules : ['std', 'stc']) - stc_exe = executable('wxstc', 'wxstc.cpp', dependencies : wx_stc) - test('wxstctest', stc_exe) +test('wxtest', wp) - # Check we can apply a version constraint - dependency('wxwidgets', version: '>=@0@'.format(wxd.version())) +# WxWidgets framework is available, we can use required here +wx_stc = dependency('wxwidgets', version : '>=3.0.0', modules : ['std', 'stc']) +stc_exe = executable('wxstc', 'wxstc.cpp', dependencies : wx_stc) +test('wxstctest', stc_exe) -endif +# Check we can apply a version constraint +dependency('wxwidgets', version: '>=@0@'.format(wxd.version()))