summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio10Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-27 18:36:01 (GMT)
committerBrad King <brad.king@kitware.com>2021-04-27 18:39:10 (GMT)
commit3db61cf9851ae7df1685ec2c8525f5d45bc52d82 (patch)
tree90ed55df00c0f5e3e353240e157be5f933fb087c /Source/cmGlobalVisualStudio10Generator.cxx
parent95afd879176256b17db44682d0664b87827c599b (diff)
downloadCMake-3db61cf9851ae7df1685ec2c8525f5d45bc52d82.zip
CMake-3db61cf9851ae7df1685ec2c8525f5d45bc52d82.tar.gz
CMake-3db61cf9851ae7df1685ec2c8525f5d45bc52d82.tar.bz2
VS: Fix VCTargetsPath detection when cross-compiling
Tell `MSBuild` to use the same `Platform` that we generate into the `VCTargetsPath` detection project. Fixes: #22068
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio10Generator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx
index 93fbe37..6c52ce0 100644
--- a/Source/cmGlobalVisualStudio10Generator.cxx
+++ b/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;