Sfoglia il codice sorgente

VS: Fix VCTargetsPath detection when cross-compiling

Tell `MSBuild` to use the same `Platform` that we generate into the
`VCTargetsPath` detection project.

Fixes: #22068
Brad King 4 anni fa
parent
commit
3db61cf985
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      Source/cmGlobalVisualStudio10Generator.cxx

+ 1 - 0
Source/cmGlobalVisualStudio10Generator.cxx

@@ -1036,6 +1036,7 @@ bool cmGlobalVisualStudio10Generator::FindVCTargetsPath(cmMakefile* mf)
   cmd.push_back(this->GetMSBuildCommand());
   cmd.push_back(vcxproj);
   cmd.push_back("/p:Configuration=Debug");
+  cmd.push_back(cmStrCat("/p:Platform=", this->GetPlatformName()));
   cmd.push_back(std::string("/p:VisualStudioVersion=") +
                 this->GetIDEVersion());
   std::string out;