forked from qt-creator/qt-creator
don't process SOURCES twice
moc.prf also adds an extra compiler which takes SOURCES as input. as we add it to the list manually, we have to filter it just like HEADERS. Change-Id: I81b8b68965c1b65fd0cef6a68c01ad00d51d6dee Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -1376,10 +1376,11 @@ QStringList QmakePriFileNode::varNames(FileType type, QtSupport::ProFileReader *
|
|||||||
foreach (const QString &var, listOfExtraCompilers) {
|
foreach (const QString &var, listOfExtraCompilers) {
|
||||||
QStringList inputs = readerExact->values(var + QLatin1String(".input"));
|
QStringList inputs = readerExact->values(var + QLatin1String(".input"));
|
||||||
foreach (const QString &input, inputs)
|
foreach (const QString &input, inputs)
|
||||||
// FORMS, RESOURCES, and STATECHARTS are handled below, HEADERS above
|
// FORMS, RESOURCES, and STATECHARTS are handled below, HEADERS and SOURCES above
|
||||||
if (input != QLatin1String("FORMS")
|
if (input != QLatin1String("FORMS")
|
||||||
&& input != QLatin1String("STATECHARTS")
|
&& input != QLatin1String("STATECHARTS")
|
||||||
&& input != QLatin1String("RESOURCES")
|
&& input != QLatin1String("RESOURCES")
|
||||||
|
&& input != QLatin1String("SOURCES")
|
||||||
&& input != QLatin1String("HEADERS"))
|
&& input != QLatin1String("HEADERS"))
|
||||||
vars << input;
|
vars << input;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user