Skip to content

Commit 0a7acbe

Browse files
authored
Add support for VS2022 Build Tools (#783)
1 parent 4ab9454 commit 0a7acbe

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cmake/modules/hunter_setup_msvc.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,12 @@ macro(hunter_setup_msvc)
211211
set(_hunter_vcvarsall_path
212212
"${_hunter_vcvarsall_path}/../../../VC/Auxiliary/Build"
213213
)
214+
if (NOT EXISTS "${_hunter_vcvarsall_path}/vcvarsall.bat")
215+
# VS 2022 Build Tools has it here
216+
set(_hunter_vcvarsall_path
217+
"${_hunter_vcvarsall_path}/../../../../VC/Auxiliary/Build"
218+
)
219+
endif()
214220
else()
215221
hunter_fatal_error(
216222
"Incorrect MSVC setup:"

0 commit comments

Comments
 (0)