Skip to content

Commit 0d78dae

Browse files
authored
add msvc17_2022 to huter_setup_msvc.cmake (#484)
1 parent 01ad169 commit 0d78dae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/modules/hunter_setup_msvc.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ macro(hunter_setup_msvc)
6262
string(COMPARE EQUAL "${MSVC_VERSION}" "1900" _vs_14_2015)
6363
string(REGEX MATCH "^191[0-9]$" _vs_15_2017 "${MSVC_VERSION}")
6464
string(REGEX MATCH "^192[0-9]$" _vs_16_2019 "${MSVC_VERSION}")
65+
string(REGEX MATCH "^193[0-9]$" _vs_17_2022 "${MSVC_VERSION}")
6566

6667
if(_vs_8_2005)
6768
set(HUNTER_MSVC_VERSION "8")
@@ -87,6 +88,9 @@ macro(hunter_setup_msvc)
8788
elseif(_vs_16_2019)
8889
set(HUNTER_MSVC_VERSION "16")
8990
set(HUNTER_MSVC_YEAR "2019")
91+
elseif(_vs_17_2022)
92+
set(HUNTER_MSVC_VERSION "17")
93+
set(HUNTER_MSVC_YEAR "2022")
9094
else()
9195
hunter_internal_error("Unexpected MSVC_VERSION: '${MSVC_VERSION}'")
9296
endif()

0 commit comments

Comments
 (0)