浏览代码

Merge topic 'vs-VCTargetsPath-Platform'

3db61cf985 VS: Fix VCTargetsPath detection when cross-compiling

Acked-by: Kitware Robot <[email protected]>
Merge-request: !6053
Brad King 4 年之前
父节点
当前提交
de76de9606
共有 1 个文件被更改,包括 1 次插入0 次删除
  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(this->GetMSBuildCommand());
   cmd.push_back(vcxproj);
   cmd.push_back(vcxproj);
   cmd.push_back("/p:Configuration=Debug");
   cmd.push_back("/p:Configuration=Debug");
+  cmd.push_back(cmStrCat("/p:Platform=", this->GetPlatformName()));
   cmd.push_back(std::string("/p:VisualStudioVersion=") +
   cmd.push_back(std::string("/p:VisualStudioVersion=") +
                 this->GetIDEVersion());
                 this->GetIDEVersion());
   std::string out;
   std::string out;