props: use ForcedTargetVersion for override

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Jason A. Donenfeld 2021-07-29 04:08:41 +02:00 committed by Simon Rozman
parent 0a3799cc3a
commit 86521458e3
2 changed files with 8 additions and 5 deletions

View File

@ -8,7 +8,7 @@
<PropertyGroup Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>WindowsApplicationForDrivers10.0</PlatformToolset>
<TargetVersion>Windows10</TargetVersion>
<ForcedTargetVersion>Windows10</ForcedTargetVersion>
</PropertyGroup>
<Import Project="..\wintun.props" />
<ItemDefinitionGroup>

View File

@ -56,16 +56,19 @@
<UseDebugLibraries>true</UseDebugLibraries>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)'=='Win32'" Label="Configuration">
<TargetVersion Condition="'$(TargetVersion)'==''">Windows7</TargetVersion>
<TargetVersion>Windows7</TargetVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)'=='ARM'" Label="Configuration">
<TargetVersion Condition="'$(TargetVersion)'==''">Windows8</TargetVersion>
<TargetVersion>Windows8</TargetVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)'=='x64'" Label="Configuration">
<TargetVersion Condition="'$(TargetVersion)'==''">Windows7</TargetVersion>
<TargetVersion>Windows7</TargetVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)'=='ARM64'" Label="Configuration">
<TargetVersion Condition="'$(TargetVersion)'==''">Windows10</TargetVersion>
<TargetVersion>Windows10</TargetVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(ForcedTargetVersion)'!=''">
<TargetVersion>$(ForcedTargetVersion)</TargetVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings" />