summaryrefslogtreecommitdiff
path: root/Modules/Platform/Windows-GNU.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-11-04 13:02:50 +0000
committerKitware Robot <kwrobot@kitware.com>2021-11-04 09:03:22 -0400
commitbbc9a27e5f9d9cfa613a0dbe2f4b9c26f8f0e9ac (patch)
treed03564ae9102daf02421d48e63f5c2419c094554 /Modules/Platform/Windows-GNU.cmake
parent338c12152ae49c4c013c802481649d9ae3bc2abf (diff)
parent571a795d2fb33e4dfdc401fa824e27b86f8bbed7 (diff)
downloadcmake-bbc9a27e5f9d9cfa613a0dbe2f4b9c26f8f0e9ac.tar.gz
Merge topic 'GNUtoMS-vs2022'
571a795d2f GNUtoMS: Add search path for VS 2022 environment scripts Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6695
Diffstat (limited to 'Modules/Platform/Windows-GNU.cmake')
-rw-r--r--Modules/Platform/Windows-GNU.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake
index 3ca5053dae..51dc14631c 100644
--- a/Modules/Platform/Windows-GNU.cmake
+++ b/Modules/Platform/Windows-GNU.cmake
@@ -144,7 +144,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")