| 857 | } |
| 858 | |
| 859 | std::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 | |
| 881 | std::string cmGlobalVisualStudio10Generator::FindDevEnvCommand() |
| 882 | { |
no test coverage detected