fix 'test' field checking in qtConfOutput_library()

Change-Id: I7cfcc33e188713f32d31e023999f5059c0bd05b1
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
bb10
Oswald Buddenhagen 2016-07-15 18:10:34 +02:00 committed by Lars Knoll
parent 0eff800e81
commit a4e1bc5b13
1 changed files with 5 additions and 2 deletions

View File

@ -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))