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
parent
95eed6278a
commit
85f2bdea44
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue