Skip to content

Commit

Permalink
Add VS2022 toolchain.
Browse files Browse the repository at this point in the history
Signed-off-by: Jiewen Yao <[email protected]>
  • Loading branch information
jyao1 committed Jan 15, 2025
1 parent 1ef46d6 commit efad07c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
MESSAGE("TOOLCHAIN = VS2015")
elseif(TOOLCHAIN STREQUAL "VS2019")
MESSAGE("TOOLCHAIN = VS2019")
elseif(TOOLCHAIN STREQUAL "VS2022")
MESSAGE("TOOLCHAIN = VS2022")
elseif(TOOLCHAIN STREQUAL "CLANG")
MESSAGE("TOOLCHAIN = CLANG")
elseif(TOOLCHAIN STREQUAL "CBMC")
Expand Down Expand Up @@ -533,7 +535,7 @@ if(TOOLCHAIN STREQUAL "VS2015")
elseif(ARCH STREQUAL "ia32")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LIBPATH:'%VCINSTALLDIR%Lib' /LIBPATH:'%UniversalCRTSdkDir%lib/%UCRTVersion%/ucrt/x86' /LIBPATH:'%WindowsSdkDir%lib/%WindowsSDKLibVersion%/um/x86'")
endif()
elseif(TOOLCHAIN STREQUAL "VS2019")
elseif((TOOLCHAIN STREQUAL "VS2019") OR (TOOLCHAIN STREQUAL "VS2022"))
if(ARCH STREQUAL "x64")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LIBPATH:'%VCToolsInstallDir%lib/x64' /LIBPATH:'%UniversalCRTSdkDir%lib/%UCRTVersion%/ucrt/x64' /LIBPATH:'%WindowsSdkDir%lib/%WindowsSDKLibVersion%/um/x64'")
elseif(ARCH STREQUAL "ia32")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

### Build Tool

1) [Visual Studio](https://visualstudio.microsoft.com/) (VS2015 or VS2019)
1) [Visual Studio](https://visualstudio.microsoft.com/) (VS2015 or VS2019 or VS2022)

2) [GCC](https://gcc.gnu.org/) (above GCC5)

Expand Down

0 comments on commit efad07c

Please sign in to comment.