qmake: Don't warn about using private headers if there are none

Change-Id: I1d9ab0b4d25671931faa469e66cb2beb7bd846fd
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Tor Arne Vestbø 2020-10-23 11:38:30 +02:00
parent addd3b5292
commit 4485f0d626

View File

@ -169,7 +169,7 @@ defineTest(qtProcessModuleFlags) {
export($$1) export($$1)
} }
unset(using_privates) unset(using_private_headers)
var_sfx = var_sfx =
for(ever) { for(ever) {
# Topological resolution of modules based on their QT.<module>.depends variable # Topological resolution of modules based on their QT.<module>.depends variable
@ -190,8 +190,8 @@ for(ever) {
next() next()
} }
contains(MODULE_CONFIG, internal_module): \ contains(MODULE_CONFIG, internal_module):!isEmpty(MODULE_INCLUDES): \
using_privates = true using_private_headers = true
contains(MODULE_CONFIG, ltcg): \ contains(MODULE_CONFIG, ltcg): \
CONFIG += link_ltcg CONFIG += link_ltcg
@ -246,7 +246,7 @@ for(ever) {
!isEmpty(var_sfx): break() !isEmpty(var_sfx): break()
var_sfx = _PRIVATE 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("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("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!") message("This is not a bug, but a result of using Qt internals. You have been warned!")