path: root/mkspecs/features/qt_functions.prf
diff options
authorSamuel Gaist <>2016-06-20 00:11:34 +0200
committerOswald Buddenhagen <>2016-07-13 14:26:38 +0000
commit07d3cbbe8450f870446f4bd2af2ec47baff23dc3 (patch)
tree830735b54a03cf639e35e9a22a10699bd594b1f1 /mkspecs/features/qt_functions.prf
parent9131f6e56139924162778c6c0538dda58d839bbb (diff)
Add warning when using pkg-config with a Qt build with it disabled
This patch adds a warning that will be shown when link_pkgconfig is used in a project but Qt's configuration has it disabled. This can happen when Qt is built before pkg-config has been installed or if it's not detected. This will avoid user losing time trying to make pkg-config work while Qt just ignores it. Change-Id: Ieeff8dd6784b9430cfebef355855ec1be91bc96e Reviewed-by: Oswald Buddenhagen <>
Diffstat (limited to 'mkspecs/features/qt_functions.prf')
1 files changed, 4 insertions, 1 deletions
diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf
index 86396958f1..4a1d265a8b 100644
--- a/mkspecs/features/qt_functions.prf
+++ b/mkspecs/features/qt_functions.prf
@@ -250,7 +250,10 @@ defineReplace(pkgConfigExecutable) {
defineTest(packagesExist) {
- contains(QT_CONFIG, no-pkg-config):return(false)
+ contains(QT_CONFIG, no-pkg-config) {
+ warning("pkg-config disabled, can't check package existence")
+ return(false)
+ }
# this can't be done in global scope here because qt_functions is loaded
# before the .pro is parsed, so if the .pro set PKG_CONFIG, we wouldn't know it