summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMalcolm Parsons <malcolm.parsons@gmail.com>2020-08-25 15:28:01 (GMT)
committerBrad King <brad.king@kitware.com>2020-08-25 18:34:02 (GMT)
commit44dffbcc94c5939cf4e81ab973a4a53ff706ecf3 (patch)
tree1479b927328fc68207a07259c87d8fea15741307 /Modules
parentaaa5eab410c2e3fe41ebf7a2316be9c51572dbd2 (diff)
downloadCMake-44dffbcc94c5939cf4e81ab973a4a53ff706ecf3.zip
CMake-44dffbcc94c5939cf4e81ab973a4a53ff706ecf3.tar.gz
CMake-44dffbcc94c5939cf4e81ab973a4a53ff706ecf3.tar.bz2
FindJNI: Add arm64 support
On 64-bit ARM, JVM directories have an arm64 suffix.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindJNI.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindJNI.cmake b/Modules/FindJNI.cmake
index 3a5bd31..eff815d 100644
--- a/Modules/FindJNI.cmake
+++ b/Modules/FindJNI.cmake
@@ -59,6 +59,8 @@ macro(java_append_library_directories _var)
endif()
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^i.86$")
set(_java_libarch "i386")
+ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64")
+ set(_java_libarch "arm64")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^alpha")
set(_java_libarch "alpha")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")