qmake: fix extra compilers in vcxprojs for single config mode
In single config mode extra compilers were not written to Visual Studio project files, because they were not added to the fake project object we're using to write a single config project. Task-number: QTBUG-27505 Change-Id: Ie57b648861573496252f1383dc77e0729e244947 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
ed043bf24a
commit
e23e224498
@ -2408,6 +2408,16 @@ void VCProjectWriter::write(XmlOutput &xml, VCProjectSingleConfig &tool)
|
||||
outputFilter(tempProj, xml, "TranslationFiles");
|
||||
outputFilter(tempProj, xml, "FormFiles");
|
||||
outputFilter(tempProj, xml, "ResourceFiles");
|
||||
|
||||
QSet<QString> extraCompilersInProject;
|
||||
for (int i = 0; i < tool.ExtraCompilersFiles.count(); ++i) {
|
||||
const QString &compilerName = tool.ExtraCompilersFiles.at(i).Name;
|
||||
if (!extraCompilersInProject.contains(compilerName)) {
|
||||
extraCompilersInProject += compilerName;
|
||||
tempProj.ExtraCompilers += compilerName;
|
||||
}
|
||||
}
|
||||
|
||||
for (int x = 0; x < tempProj.ExtraCompilers.count(); ++x) {
|
||||
outputFilter(tempProj, xml, tempProj.ExtraCompilers.at(x));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user