summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorWangBin <wbsecg1@gmail.com>2021-08-12 03:14:22 (GMT)
committerBrad King <brad.king@kitware.com>2021-08-18 18:09:33 (GMT)
commit164643fc3994f7fca09d4974cb097ec3d418cd53 (patch)
treedce003ffbfc0a84ab42a9953681aff00aac61e5d /Modules/Platform
parent3de5096094b440b75887467a79e04eaafb2ba236 (diff)
downloadCMake-164643fc3994f7fca09d4974cb097ec3d418cd53.zip
CMake-164643fc3994f7fca09d4974cb097ec3d418cd53.tar.gz
CMake-164643fc3994f7fca09d4974cb097ec3d418cd53.tar.bz2
Android: Fix NDK toolchain dir on arm64 mac
Diffstat (limited to 'Modules/Platform')
-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 2d2cd5c..7b67f83 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")