diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2020-06-17 15:14:48 +0200 |
---|---|---|
committer | Oliver Wolff <oliver.wolff@qt.io> | 2020-06-17 19:14:52 +0200 |
commit | 2f2340c97e91c50fca42673a0ad8d0d3c193366b (patch) | |
tree | 7a525d4b066af34baf06cdbb9390e02306119533 | |
parent | a1f3ab1cad67b3149b784032c2cf2ba40db3cc1b (diff) |
qmake: Fix generation of Visual Studio projects
While removing winrt code too much code was removed. The
ProjectConfiguration is needed for every Visual Studio project.
This patch amends 45b0f1be686cfba8dcecb9be5c875cae59c69276
Fixes: QTBUG-85086
Change-Id: Ic8b42583a159d5b69c0c4e82f46dd98ad8e54ce2
Reviewed-by: Miguel Costa <miguel.costa@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r-- | qmake/generators/win32/msbuild_objectmodel.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qmake/generators/win32/msbuild_objectmodel.cpp b/qmake/generators/win32/msbuild_objectmodel.cpp index 4129482990..b5b8a14a9e 100644 --- a/qmake/generators/win32/msbuild_objectmodel.cpp +++ b/qmake/generators/win32/msbuild_objectmodel.cpp @@ -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") |