forked from virtio-win/kvm-guest-drivers-windows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDriver.Platform.props
35 lines (29 loc) · 1.36 KB
/
Driver.Platform.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!--
***********************************************************************************************
Driver.Platform.props
Should be imported before Microsoft.Cpp.Default.props and after
PlatformToolset defined (if needed) for configurations. The very
beginning of Driver.Common.props is an ideal place.
Common PlatformTools definitions used by all projects:
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" TreatAsLocalProperty="Platform">
<!-- Ugly but simple PlatformToolset selector -->
<PropertyGroup>
<VisualStudioVersionMajor>$(VisualStudioVersion.Split('.')[0])</VisualStudioVersionMajor>
</PropertyGroup>
<PropertyGroup>
<VisualStudioToolset>v141</VisualStudioToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(VisualStudioVersionMajor)'>='16'">
<VisualStudioToolset>v142</VisualStudioToolset>
<CETCompatSupported>true</CETCompatSupported>
</PropertyGroup>
<PropertyGroup Condition="'$(VisualStudioVersionMajor)'>='17'">
<VisualStudioToolset>v143</VisualStudioToolset>
<CETCompatSupported>true</CETCompatSupported>
</PropertyGroup>
<PropertyGroup Condition= "'$(PlatformToolset)'=='' OR '$(PlatformToolset)'=='AutoVSToolset'">
<PlatformToolset>$(VisualStudioToolset)</PlatformToolset>
</PropertyGroup>
</Project>