diff --git a/test cases/frameworks/4 qt/meson.build b/test cases/frameworks/4 qt/meson.build index 1096c7801..3d727a4fb 100644 --- a/test cases/frameworks/4 qt/meson.build +++ b/test cases/frameworks/4 qt/meson.build @@ -1,7 +1,12 @@ project('qt4 and 5 build test', 'cpp') +qt5_modules = ['Widgets'] foreach qt : ['qt4', 'qt5'] - qtdep = dependency(qt, modules : ['Core', 'Gui', 'Widgets'], required : qt == 'qt5') + qt_modules = ['Core', 'Gui'] + if qt == 'qt5' + qt_modules += qt5_modules + endif + qtdep = dependency(qt, modules : qt_modules, required : qt == 'qt5') if qtdep.found() qtmodule = import(qt)