Windows-GNU.cmake needs minor update to support Visual Studio 2019
I needed this small diff to use Windows-GNU.cmake
with Visual Studio 16 2019:
# 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 15 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")
- Is there a larger VS2019 effort that can absorb this small change?
- This diff is against
cmake-3.16.2
Edited by Kelly (KT) Thompson