summaryrefslogtreecommitdiffstats
path: root/mkspecs/features
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-07-15 18:10:34 +0200
committerLars Knoll <lars.knoll@qt.io>2016-08-10 15:42:33 +0000
commita4e1bc5b13556f21ff64817a0e2d5981aa3284b0 (patch)
treed30198b147f1ae5f7b0d4ead13618dca27749304 /mkspecs/features
parent0eff800e81f3e7f803dffd77737faaed73002ac8 (diff)
fix 'test' field checking in qtConfOutput_library()
Change-Id: I7cfcc33e188713f32d31e023999f5059c0bd05b1 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'mkspecs/features')
-rw-r--r--mkspecs/features/qt_configure.prf7
1 files changed, 5 insertions, 2 deletions
diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf
index aaed0cb2d1..f4d94c02bc 100644
--- a/mkspecs/features/qt_configure.prf
+++ b/mkspecs/features/qt_configure.prf
@@ -1086,9 +1086,12 @@ defineTest(qtConfOutput_library) {
name = $$eval($${1}.feature)
NAME = $$upper($$replace(name, [-.], _))
- lookup = "config.tests.$$eval($${1}.test)"
- isEmpty(lookup): \
+ test = $$eval($${1}.test)
+ isEmpty(test): \
error("Output type 'library' used in feature '$$eval($${1}.feature)' without a 'test' entry.")
+ lookup = "config.tests.$$test"
+ isEmpty($${lookup}._KEYS_): \
+ error("Output type 'library' used in feature '$$eval($${1}.feature)' refers to undefined test '$$test'.")
eval(libs = $$eval($${lookup}.libs))
eval(cflags = $$eval($${lookup}.cflags))