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

Method FindDevEnvCommand

Source/cmGlobalVisualStudioVersionedGenerator.cxx:1046–1061  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1044}
1045
1046std::string cmGlobalVisualStudioVersionedGenerator::FindDevEnvCommand()
1047{
1048 std::string devenv;
1049
1050 // Ask Visual Studio Installer tool.
1051 std::string vs;
1052 if (vsSetupAPIHelper.GetVSInstanceInfo(vs)) {
1053 devenv = cmStrCat(vs, "/Common7/IDE/devenv.com");
1054 if (cmSystemTools::FileExists(devenv)) {
1055 return devenv;
1056 }
1057 }
1058
1059 devenv = "devenv.com";
1060 return devenv;
1061}

Callers

nothing calls this directly

Calls 3

GetVSInstanceInfoMethod · 0.80
cmStrCatFunction · 0.70
FileExistsFunction · 0.50

Tested by

no test coverage detected