summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-10-23 11:38:30 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-10-23 20:19:29 +0200
commit4485f0d626c44ca21e8dff6e336bbd99fdae6761 (patch)
treeb6409eaaf9b49e207f32a796e64b54dde9567fb5 /mkspecs
parentaddd3b52929395d4efdc40cfd40902888da8fdbe (diff)
qmake: Don't warn about using private headers if there are none
Change-Id: I1d9ab0b4d25671931faa469e66cb2beb7bd846fd Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/qt.prf8
1 files changed, 4 insertions, 4 deletions
diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf
index 532a241fc0..c1691a7894 100644
--- a/mkspecs/features/qt.prf
+++ b/mkspecs/features/qt.prf
@@ -169,7 +169,7 @@ defineTest(qtProcessModuleFlags) {
export($$1)
}
-unset(using_privates)
+unset(using_private_headers)
var_sfx =
for(ever) {
# Topological resolution of modules based on their QT.<module>.depends variable
@@ -190,8 +190,8 @@ for(ever) {
next()
}
- contains(MODULE_CONFIG, internal_module): \
- using_privates = true
+ contains(MODULE_CONFIG, internal_module):!isEmpty(MODULE_INCLUDES): \
+ using_private_headers = true
contains(MODULE_CONFIG, ltcg): \
CONFIG += link_ltcg
@@ -246,7 +246,7 @@ for(ever) {
!isEmpty(var_sfx): break()
var_sfx = _PRIVATE
}
-!isEmpty(using_privates):!no_private_qt_headers_warning:!build_pass {
+!isEmpty(using_private_headers):!no_private_qt_headers_warning:!build_pass {
message("This project is using private headers and will therefore be tied to this specific Qt module build version.")
message("Running this project against other versions of the Qt modules may crash at any arbitrary point.")
message("This is not a bug, but a result of using Qt internals. You have been warned!")