qmake: fix variable naming conflicts with C++20 keyword

It conflicts with 'requires' keyword.

Fixes: QTBUG-77093
Change-Id: I85e8f530dd1e2bf9a31906dd6c5123b947235b01
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Yulong Bai 2019-07-18 17:21:23 +02:00
parent 65f9646583
commit a96a64be2d

View File

@ -3418,9 +3418,9 @@ MakefileGenerator::writePkgConfigFile()
t << endl;
// requires
const QString requires = project->values("QMAKE_PKGCONFIG_REQUIRES").join(' ');
if (!requires.isEmpty()) {
t << "Requires: " << requires << endl;
const QString requiresString = project->values("QMAKE_PKGCONFIG_REQUIRES").join(' ');
if (!requiresString.isEmpty()) {
t << "Requires: " << requiresString << endl;
}
t << endl;