summaryrefslogtreecommitdiff
path: root/Modules/CMakeGenericSystem.cmake
diff options
context:
space:
mode:
authorMinmin Gong <gongminmin@msn.com>2017-09-01 21:06:38 -0700
committerBrad King <brad.king@kitware.com>2017-09-12 09:54:29 -0400
commitbc7c94fe13eeda2b59f5af606a03fdad5a9c29a5 (patch)
tree86395272041689ead3e1bc6f2a062cece8861cc5 /Modules/CMakeGenericSystem.cmake
parent3f8c6cab4bb4a9f68708c11a38e4487dad363e38 (diff)
downloadcmake-bc7c94fe13eeda2b59f5af606a03fdad5a9c29a5.tar.gz
MSVC: Add support for ARM64 architecture
Visual Studio 15.4 adds support for this architecture. Fixes: #17213
Diffstat (limited to 'Modules/CMakeGenericSystem.cmake')
-rw-r--r--Modules/CMakeGenericSystem.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeGenericSystem.cmake b/Modules/CMakeGenericSystem.cmake
index cd052376b5..9c38f6e3df 100644
--- a/Modules/CMakeGenericSystem.cmake
+++ b/Modules/CMakeGenericSystem.cmake
@@ -76,6 +76,8 @@ function(GetDefaultWindowsPrefixBase var)
#
if("${CMAKE_GENERATOR}" MATCHES "(Win64|IA64)")
set(arch_hint "x64")
+ elseif("${CMAKE_GENERATOR_PLATFORM}" MATCHES "ARM64")
+ set(arch_hint "ARM64")
elseif("${CMAKE_GENERATOR}" MATCHES "ARM")
set(arch_hint "ARM")
elseif("${CMAKE_SIZEOF_VOID_P}" STREQUAL "8")