MCPcopy Create free account
hub / github.com/Kitware/CMake / LoadSpecifiedVSInstanceFromDisk

Method LoadSpecifiedVSInstanceFromDisk

Source/cmVSSetupHelper.cxx:572–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572bool cmVSSetupAPIHelper::LoadSpecifiedVSInstanceFromDisk()
573{
574 if (!cmSystemTools::FileIsDirectory(this->SpecifiedVSInstallLocation)) {
575 return false;
576 }
577 VSInstanceInfo vsInstanceInfo;
578 vsInstanceInfo.VSInstallLocation = this->SpecifiedVSInstallLocation;
579 // FIXME: Is there a better way to get SDK information?
580 vsInstanceInfo.IsWin10SDKInstalled = true;
581 vsInstanceInfo.IsWin81SDKInstalled = false;
582
583 if (!this->SpecifiedVSInstallVersion.empty()) {
584 // Assume the version specified by the user is correct.
585 vsInstanceInfo.Version = this->SpecifiedVSInstallVersion;
586 } else {
587 return false;
588 }
589
590 if (!LoadVSInstanceVCToolsetVersion(vsInstanceInfo)) {
591 return false;
592 }
593
594 chosenInstanceInfo = std::move(vsInstanceInfo);
595 return true;
596}
597
598bool cmVSSetupAPIHelper::Initialize()
599{

Callers 1

Calls 3

moveFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected