Thanks to visit codestin.com Credit goes to github.com
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 665329a commit 6e5417dCopy full SHA for 6e5417d
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