Skip to content

Commit

Permalink
Merge pull request #1764 from kazasaku/feature/add_support_vs2022
Browse files Browse the repository at this point in the history
Visual Studio 2022を使用したローカルビルドに対応する
  • Loading branch information
Kohki Akikaze authored Jan 12, 2022
2 parents f095569 + 93cf3f3 commit b8bb61e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/find-tools.bat
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ exit /b
set NUM_VSVERSION=15
) else if "%ARG_VSVERSION%" == "2019" (
set NUM_VSVERSION=16
) else if "%ARG_VSVERSION%" == "2022" (
set NUM_VSVERSION=17
) else if "%ARG_VSVERSION%" == "latest" (
call :check_latest_installed_vsversion
) else (
Expand All @@ -185,6 +187,8 @@ exit /b
set CMAKE_G_PARAM=Visual Studio 15 2017
) else if "%NUM_VSVERSION%" == "16" (
set CMAKE_G_PARAM=Visual Studio 16 2019
) else if "%NUM_VSVERSION%" == "17" (
set CMAKE_G_PARAM=Visual Studio 17 2022
) else (
call :set_cmake_gparam_automatically
)
Expand Down
6 changes: 6 additions & 0 deletions vcx-props/vcxcompat.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@
<PropertyGroup Label="Globals" Condition="'$(VisualStudioVersion)' == '16.0'">
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<PropertyGroup Label="Globals" Condition="'$(VisualStudioVersion)' == '17.0'">
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(VisualStudioVersion)' == '15.0'">
<PlatformToolset>v141</PlatformToolset>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(VisualStudioVersion)' == '16.0'">
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(VisualStudioVersion)' == '17.0'">
<PlatformToolset>v143</PlatformToolset>
</PropertyGroup>
</Project>

0 comments on commit b8bb61e

Please sign in to comment.