diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2018-07-10 09:15:52 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2018-07-10 11:26:59 +0000 |
commit | 079f69315954f2f6efc2167df3755c3737dc21ab (patch) | |
tree | 4483b8a74ec27783a82be6e31aec0aa8228f0f1f | |
parent | 894e8b0b098da28206c6c3c632868496579b1ead (diff) |
MSVC Probe: Expose WindowsSDKVersion and WindowsSdkDir
Those two environment variables are needed for the WinRT build of Qt.
Task-number: QTBUG-68144
Change-Id: Ib07c86971ffb7951b2c533b6e900bf6247e9f08f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r-- | src/lib/corelib/tools/vsenvironmentdetector.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/corelib/tools/vsenvironmentdetector.cpp b/src/lib/corelib/tools/vsenvironmentdetector.cpp index 9beb534e1..32e6d3497 100644 --- a/src/lib/corelib/tools/vsenvironmentdetector.cpp +++ b/src/lib/corelib/tools/vsenvironmentdetector.cpp @@ -217,7 +217,8 @@ void VsEnvironmentDetector::writeBatchFile(QIODevice *device, const QString &vcv const std::vector<MSVC *> &msvcs) const { const QStringList varnames = QStringList() << StringConstants::pathEnvVar() - << QLatin1String("INCLUDE") << QLatin1String("LIB"); + << QLatin1String("INCLUDE") << QLatin1String("LIB") << QLatin1String("WindowsSdkDir") + << QLatin1String("WindowsSDKVersion"); QTextStream s(device); s << "@echo off" << endl; for (const MSVC *msvc : msvcs) { |