diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-02-12 16:51:21 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2018-02-21 17:10:04 +0000 |
commit | 7d974cd9629db088cffce1ecb095ace4f1d68846 (patch) | |
tree | a582d8b197c1e1783e453ac6ae23c4cb1644d1a7 | |
parent | e4b4911410fda0835ab72593c3d4c4e264d21914 (diff) | |
download | meson-7d974cd9629db088cffce1ecb095ace4f1d68846.zip meson-7d974cd9629db088cffce1ecb095ace4f1d68846.tar.gz meson-7d974cd9629db088cffce1ecb095ace4f1d68846.tar.bz2 |
Skip test cases/frameworks/4 qt if Qt5 not found
-rw-r--r-- | test cases/frameworks/4 qt/meson.build | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test cases/frameworks/4 qt/meson.build b/test cases/frameworks/4 qt/meson.build index b0e848d..b508df3 100644 --- a/test cases/frameworks/4 qt/meson.build +++ b/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')) |