Skip to content

Commit

Permalink
qmake: Fix generation of Visual Studio projects
Browse files Browse the repository at this point in the history
While removing winrt code too much code was removed. The
ProjectConfiguration is needed for every Visual Studio project.

This patch amends 45b0f1b

Fixes: QTBUG-85086
Change-Id: Ic8b42583a159d5b69c0c4e82f46dd98ad8e54ce2
Reviewed-by: Miguel Costa <[email protected]>
Reviewed-by: Joerg Bornemann <[email protected]>
  • Loading branch information
owolff committed Jun 17, 2020
1 parent a1f3ab1 commit 2f2340c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qmake/generators/win32/msbuild_objectmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,14 @@ void VCXProjectWriter::write(XmlOutput &xml, VCProject &tool)
<< tag("ItemGroup")
<< attrTag("Label", "ProjectConfigurations");

for (int i = 0; i < tool.SingleProjects.count(); ++i) {
xml << tag("ProjectConfiguration")
<< attrTag("Include" , tool.SingleProjects.at(i).Configuration.Name)
<< tagValue("Configuration", tool.SingleProjects.at(i).Configuration.ConfigurationName)
<< tagValue("Platform", tool.SingleProjects.at(i).PlatformName)
<< closetag();
}

xml << closetag()
<< tag("PropertyGroup")
<< attrTag("Label", "Globals")
Expand Down

0 comments on commit 2f2340c

Please sign in to comment.