summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWangBin <wbsecg1@gmail.com>2021-08-11 23:14:22 -0400
committerBrad King <brad.king@kitware.com>2021-08-18 14:09:33 -0400
commit164643fc3994f7fca09d4974cb097ec3d418cd53 (patch)
treedce003ffbfc0a84ab42a9953681aff00aac61e5d
parent3de5096094b440b75887467a79e04eaafb2ba236 (diff)
downloadcmake-164643fc3994f7fca09d4974cb097ec3d418cd53.tar.gz
Android: Fix NDK toolchain dir on arm64 mac
-rw-r--r--Modules/Platform/Android-Determine.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Android-Determine.cmake b/Modules/Platform/Android-Determine.cmake
index 2d2cd5c72b..7b67f839ec 100644
--- a/Modules/Platform/Android-Determine.cmake
+++ b/Modules/Platform/Android-Determine.cmake
@@ -267,7 +267,7 @@ endif()
if(CMAKE_ANDROID_NDK)
# Identify the host platform.
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
- if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64")
+ if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "64")
set(CMAKE_ANDROID_NDK_TOOLCHAIN_HOST_TAG "darwin-x86_64")
else()
set(CMAKE_ANDROID_NDK_TOOLCHAIN_HOST_TAG "darwin-x86")