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 5c3d472 commit 165f4eeCopy full SHA for 165f4ee
src/tools/msvc/MSBuildProject.pm
@@ -38,6 +38,19 @@ EOF
38
</ItemGroup>
39
<PropertyGroup Label="Globals">
40
<ProjectGuid>$self->{guid}</ProjectGuid>
41
+EOF
42
+ # Check whether WindowsSDKVersion env variable is present.
43
+ # Add WindowsTargetPlatformVersion node if so.
44
+ my $sdkVersion = $ENV{'WindowsSDKVersion'};
45
+ if (defined($sdkVersion))
46
+ {
47
+ # remove trailing backslash if necessary.
48
+ $sdkVersion, =~ s/\\$//;
49
+ print $f <<EOF
50
+ <WindowsTargetPlatformVersion>$sdkVersion</WindowsTargetPlatformVersion>
51
52
+ }
53
+ print $f <<EOF;
54
</PropertyGroup>
55
<Import Project="\$(VCTargetsPath)\\Microsoft.Cpp.Default.props" />
56
EOF
0 commit comments