Merge topic 'vs-instance'

e801d2b243 VS: Make CMAKE_GENERATOR_INSTANCE usable without VS Installer

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9794
This commit is contained in:
Brad King
2024-09-06 15:34:56 +00:00
committed by Kitware Robot
+2 -1
View File
@@ -450,7 +450,8 @@ bool cmVSSetupAPIHelper::EnumerateAndChooseVSInstance()
// Enumerate VS instances with either COM interface or Vswhere
if (!EnumerateVSInstancesWithCOM(vecVSInstancesAll) &&
!EnumerateVSInstancesWithVswhere(vecVSInstancesAll)) {
!EnumerateVSInstancesWithVswhere(vecVSInstancesAll) &&
this->SpecifiedVSInstallLocation.empty()) {
return false;
}