|
53 | 53 |
|
54 | 54 | functionget_vs_version()
|
55 | 55 | localfunctionmap_msvc_to_vs_version(major,minor)
|
56 |
| -ifmajor=="19"andminor>="20"thenreturn"vs2019" |
| 56 | +ifmajor=="22"thenreturn"vs2022" |
| 57 | +elseifmajor=="19"andminor>="20"thenreturn"vs2019" |
57 | 58 | elseifmajor=="19"andminor>="10"thenreturn"vs2017"
|
58 | 59 | end
|
59 | 60 | end
|
60 | 61 |
|
61 | 62 | localfunctionmap_msbuild_to_vs_version(major,minor)
|
62 |
| -ifmajor=="16"thenreturn"vs2019" |
| 63 | +ifmajor=="17"thenreturn"vs2022" |
| 64 | +elseifmajor=="16"thenreturn"vs2019" |
63 | 65 | elseifmajor=="15"thenreturn"vs2017"
|
64 | 66 | end
|
65 | 67 | end
|
|
397 | 399 |
|
398 | 400 | functionget_cmake_generator()
|
399 | 401 | localvsver=get_vs_version()
|
400 |
| -ifvsver=="vs2019"then |
| 402 | +ifvsver=="vs2022"then |
| 403 | +return"Visual Studio 17 2022", (target_architecture()=="x86")and"-A Win32"ornil |
| 404 | +elseifvsver=="vs2019"then |
401 | 405 | return"Visual Studio 16 2019", (target_architecture()=="x86")and"-A Win32"ornil
|
402 | 406 | elseifvsver=="vs2017"then
|
403 | 407 | return"Visual Studio 15 2017".. (target_architecture()=="x64"and" Win64"or""),nil
|
|