diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-07-29 04:08:41 +0200 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2021-07-30 10:40:27 +0200 |
commit | 86521458e3985b42a5f603eb4008daf05f163fec (patch) | |
tree | 2736d79ae217b9f60db7844a99a93eb7ec3f9631 | |
parent | editorconfig: farewell wix (diff) | |
download | wintun-86521458e3985b42a5f603eb4008daf05f163fec.tar.xz wintun-86521458e3985b42a5f603eb4008daf05f163fec.zip |
props: use ForcedTargetVersion for override
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Simon Rozman <simon@rozman.si>
-rw-r--r-- | example/example.vcxproj | 2 | ||||
-rw-r--r-- | wintun.props | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/example/example.vcxproj b/example/example.vcxproj index 3e5bb35..22b1eac 100644 --- a/example/example.vcxproj +++ b/example/example.vcxproj @@ -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>
diff --git a/wintun.props b/wintun.props index 05ede6a..f4f6a76 100644 --- a/wintun.props +++ b/wintun.props @@ -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" /> |