Skip test cases/frameworks/4 qt if Qt5 not found

pull/3060/head
Jon Turney 7 years ago
parent e4b4911410
commit 7d974cd962
  1. 8
      test cases/frameworks/4 qt/meson.build

@ -21,6 +21,14 @@ foreach qt : ['qt4', 'qt5']
error('Invalid qt dep incorrectly found!')
endif
# This test should be skipped if qt5 isn't found
if qt == 'qt5'
dep = dependency(qt, modules : ['Core'], required : false, method : get_option('method'))
if not dep.found()
error('MESON_SKIP_TEST qt5 not found.')
endif
endif
# Ensure that the "no-Core-module-specified" code branch is hit
nocoredep = dependency(qt, modules : ['Gui'], required : qt == 'qt5', method : get_option('method'))

Loading…
Cancel
Save