aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Costa <miguel.costa@qt.io>2020-08-16 15:50:08 +0200
committerMiguel Costa <miguel.costa@qt.io>2020-08-17 08:24:30 +0000
commit4e320decdad224712a2a480a78f62b6d1f59e336 (patch)
treea1a47da56e092a1fde1a652b9e04e096c02fb4b0
parent367c8abdca02e45d693d7303fe9e9f83cdce74f3 (diff)
Fix widgets project wizard not working for WinRT
Fixed a problem where the widgets project wizard would generate an incorrect project file (lacking appxmanifest). This was caused by calling qmake to obtain Windows Store deployment files for the project without previously setting up the VC environment variables. Change-Id: I11f5d01c97c4083230de1510a04dd9e98b4e5a88 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--src/qtwizard/Wizards/ProjectWizard/Gui/GuiWizard.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qtwizard/Wizards/ProjectWizard/Gui/GuiWizard.cs b/src/qtwizard/Wizards/ProjectWizard/Gui/GuiWizard.cs
index 42457a67..74fc99e8 100644
--- a/src/qtwizard/Wizards/ProjectWizard/Gui/GuiWizard.cs
+++ b/src/qtwizard/Wizards/ProjectWizard/Gui/GuiWizard.cs
@@ -263,7 +263,7 @@ namespace QtVsTools.Wizards.ProjectWizard
File.WriteAllText(dummyPro, "SOURCES = main.cpp\r\n");
var qmake = new QMakeImport(configWinRT.QtVersion, dummyPro);
- qmake.Run();
+ qmake.Run(setVCVars: true);
var qmakeAssetsDir = Path.Combine(qmakeTmpDir, "assets");
var projAssetsDir = Path.Combine(projDir, "assets");