qmake vcxproj generator: Fix extra compilers for single configs
For single config mode (no debug_and_release) extra compilers wouldn't get added to the vcxproj file. Single config mode creates a temporary project, and that was incomplete. Multi config mode, on the other hand, directly operates on the "real data" and wasn't affected by this problem. Task-number: QTBUG-69769 Change-Id: I9cd942e43d80adbeac9a3c8fbe1a5766bc9645a0 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
58b6b723de
commit
f2668c6b43
@ -557,6 +557,12 @@ void VCXProjectWriter::write(XmlOutput &xml, VCProjectSingleConfig &tool)
|
||||
addFilters(tempProj, xmlFilter, "Deployment Files");
|
||||
addFilters(tempProj, xmlFilter, "Distribution Files");
|
||||
|
||||
tempProj.ExtraCompilers.reserve(tool.ExtraCompilersFiles.size());
|
||||
std::transform(tool.ExtraCompilersFiles.cbegin(), tool.ExtraCompilersFiles.cend(),
|
||||
std::back_inserter(tempProj.ExtraCompilers),
|
||||
[] (const VCFilter &filter) { return filter.Name; });
|
||||
tempProj.ExtraCompilers.removeDuplicates();
|
||||
|
||||
for (int x = 0; x < tempProj.ExtraCompilers.count(); ++x)
|
||||
addFilters(tempProj, xmlFilter, tempProj.ExtraCompilers.at(x));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user