mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
VS: Fix VCTargetsPath detection when cross-compiling
Tell `MSBuild` to use the same `Platform` that we generate into the `VCTargetsPath` detection project. Fixes: #22068
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user