unbreak pkg-config use with cache

test callbacks MUST NOT act as outputs, ever.

this went unnoticed so far, as it would become visible only with
configure -recheck.

Change-Id: Idd923097b4b2790ef4fe8a6d430db4b62851801a
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
bb10
Oswald Buddenhagen 2016-08-26 19:22:17 +02:00
parent 95eed6278a
commit 85f2bdea44
1 changed files with 2 additions and 3 deletions

View File

@ -191,9 +191,6 @@ defineTest(qtConfTest_detectPkgConfig) {
$${1}.cache += pkgConfig
export($${1}.cache)
PKG_CONFIG = $$pkgConfig
export(PKG_CONFIG)
return(true)
}
@ -526,6 +523,8 @@ defineTest(qtConfOutput_qreal) {
defineTest(qtConfOutput_pkgConfig) {
!$${2}: return()
PKG_CONFIG = $$eval(config.tests.pkg-config.pkgConfig)
export(PKG_CONFIG)
# this method also exports PKG_CONFIG_(LIB|SYSROOT)DIR, so that tests using pkgConfig will work correctly
PKG_CONFIG_SYSROOT_DIR = $$eval(config.tests.pkg-config.pkgConfigSysrootDir)
!isEmpty(PKG_CONFIG_SYSROOT_DIR) {