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

Method FindMSBuildCommand

Source/cmGlobalVisualStudio10Generator.cxx:859–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

857}
858
859std::string cmGlobalVisualStudio10Generator::FindMSBuildCommand()
860{
861 std::string msbuild;
862 std::string mskey;
863
864 // Search in standard location.
865 mskey =
866 cmStrCat(R"(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\)",
867 this->GetToolsVersion(), ";MSBuildToolsPath");
868 if (cmSystemTools::ReadRegistryValue(mskey, msbuild,
869 cmSystemTools::KeyWOW64_32)) {
870 cmSystemTools::ConvertToUnixSlashes(msbuild);
871 msbuild += "/MSBuild.exe";
872 if (cmSystemTools::FileExists(msbuild, true)) {
873 return msbuild;
874 }
875 }
876
877 msbuild = "MSBuild.exe";
878 return msbuild;
879}
880
881std::string cmGlobalVisualStudio10Generator::FindDevEnvCommand()
882{

Calls 3

GetToolsVersionMethod · 0.95
cmStrCatFunction · 0.70
FileExistsFunction · 0.50

Tested by

no test coverage detected