summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio12Generator.cxx
diff options
context:
space:
mode:
authorNiyas Sait <niyas.sait@linaro.org>2022-05-15 17:15:21 (GMT)
committerBrad King <brad.king@kitware.com>2022-05-19 13:57:54 (GMT)
commitaf6928ce92783c1583f8f9ae25e50c2991ebd0c0 (patch)
tree06ed0a61973f13de1a07a4b2a6b785e1a78c2919 /Source/cmGlobalVisualStudio12Generator.cxx
parentdc3d0b5a0a7d26d43d6cfeb511e224533b5d188f (diff)
downloadCMake-af6928ce92783c1583f8f9ae25e50c2991ebd0c0.zip
CMake-af6928ce92783c1583f8f9ae25e50c2991ebd0c0.tar.gz
CMake-af6928ce92783c1583f8f9ae25e50c2991ebd0c0.tar.bz2
VS: ARM64 as default toolset architecture for ARM64 host
Visual Studio 2022 17 Preview introduced a native ARM64 toolchain.
Diffstat (limited to 'Source/cmGlobalVisualStudio12Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio12Generator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio12Generator.cxx b/Source/cmGlobalVisualStudio12Generator.cxx
index 12ffa5b..600ee0a 100644
--- a/Source/cmGlobalVisualStudio12Generator.cxx
+++ b/Source/cmGlobalVisualStudio12Generator.cxx
@@ -138,7 +138,8 @@ bool cmGlobalVisualStudio12Generator::MatchesGeneratorName(
bool cmGlobalVisualStudio12Generator::ProcessGeneratorToolsetField(
std::string const& key, std::string const& value)
{
- if (key == "host" && (value == "x64" || value == "x86")) {
+ if (key == "host" &&
+ (value == "x64" || value == "x86" || value == "ARM64")) {
this->GeneratorToolsetHostArchitecture = value;
return true;
}