Skip to content

Fix default VS generator selection for Microsoft Build Tools

Brad King requested to merge brad.king/cmake:vs-default-generator into master

Some versions of the VS tools do not install the registry entry

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\$v;InstallDir

but all appear to set

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\$v\Setup\VC;ProductDir

Update our search to consider both entries.

Closes: #16360 (closed)

Merge request reports

Loading