diff options
author | Brad King <brad.king@kitware.com> | 2021-11-03 14:31:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-11-03 14:32:14 (GMT) |
commit | 571a795d2fb33e4dfdc401fa824e27b86f8bbed7 (patch) | |
tree | d604f5d0305e9ba05e95ff565aed06600b139460 /Modules/Platform/Windows-GNU.cmake | |
parent | f65cebf51a2cf3af2017fd9b03c685c77da00c74 (diff) | |
download | CMake-571a795d2fb33e4dfdc401fa824e27b86f8bbed7.zip CMake-571a795d2fb33e4dfdc401fa824e27b86f8bbed7.tar.gz CMake-571a795d2fb33e4dfdc401fa824e27b86f8bbed7.tar.bz2 |
GNUtoMS: Add search path for VS 2022 environment scripts
Extend the logic from commit 08c5b3eff0 (GNUtoMS: Add search path for VS
2019 environment scripts, 2020-01-09, v3.16.3~15^2) to consider VS 2022
paths too.
Fixes: #22847
Diffstat (limited to 'Modules/Platform/Windows-GNU.cmake')
-rw-r--r-- | Modules/Platform/Windows-GNU.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake index d000380..a04882f 100644 --- a/Modules/Platform/Windows-GNU.cmake +++ b/Modules/Platform/Windows-GNU.cmake @@ -148,7 +148,7 @@ macro(__windows_compiler_gnu_abi lang) # Query the VS Installer tool for locations of VS 2017 and above. set(_vs_installer_paths "") - foreach(vs RANGE 16 15 -1) # change the first number to the largest supported version + foreach(vs RANGE 17 15 -1) # change the first number to the largest supported version cmake_host_system_information(RESULT _vs_dir QUERY VS_${vs}_DIR) if(_vs_dir) list(APPEND _vs_installer_paths "${_vs_dir}/VC/Auxiliary/Build") |