8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5a4ab2 commit 20e99cdCopy full SHA for 20e99cd
src/tools/msvc/MSBuildProject.pm
@@ -40,6 +40,19 @@ EOF
40
</ItemGroup>
41
<PropertyGroup Label="Globals">
42
<ProjectGuid>$self->{guid}</ProjectGuid>
43
+EOF
44
+ # Check whether WindowsSDKVersion env variable is present.
45
+ # Add WindowsTargetPlatformVersion node if so.
46
+ my $sdkVersion = $ENV{'WindowsSDKVersion'};
47
+ if (defined($sdkVersion))
48
+ {
49
+ # remove trailing backslash if necessary.
50
+ $sdkVersion, =~ s/\\$//;
51
+ print $f <<EOF
52
+ <WindowsTargetPlatformVersion>$sdkVersion</WindowsTargetPlatformVersion>
53
54
+ }
55
+ print $f <<EOF;
56
</PropertyGroup>
57
<Import Project="\$(VCTargetsPath)\\Microsoft.Cpp.Default.props" />
58
EOF
0 commit comments