mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-27 00:49:52 -06:00
Merge branch 'revert-vs-msbuild-arch' into release-3.14
Merge-request: !3090
This commit is contained in:
@@ -478,18 +478,6 @@ std::string cmGlobalVisualStudioVersionedGenerator::FindMSBuildCommand()
|
||||
// Ask Visual Studio Installer tool.
|
||||
std::string vs;
|
||||
if (vsSetupAPIHelper.GetVSInstanceInfo(vs)) {
|
||||
std::string const& hostArch =
|
||||
this->GetPlatformToolsetHostArchitectureString();
|
||||
if (hostArch == "x64") {
|
||||
msbuild = vs + "/MSBuild/Current/Bin/amd64/MSBuild.exe";
|
||||
if (cmSystemTools::FileExists(msbuild)) {
|
||||
return msbuild;
|
||||
}
|
||||
msbuild = vs + "/MSBuild/15.0/Bin/amd64/MSBuild.exe";
|
||||
if (cmSystemTools::FileExists(msbuild)) {
|
||||
return msbuild;
|
||||
}
|
||||
}
|
||||
msbuild = vs + "/MSBuild/Current/Bin/MSBuild.exe";
|
||||
if (cmSystemTools::FileExists(msbuild)) {
|
||||
return msbuild;
|
||||
|
||||
Reference in New Issue
Block a user