From 44dffbcc94c5939cf4e81ab973a4a53ff706ecf3 Mon Sep 17 00:00:00 2001 From: Malcolm Parsons Date: Tue, 25 Aug 2020 11:28:01 -0400 Subject: FindJNI: Add arm64 support On 64-bit ARM, JVM directories have an arm64 suffix. --- Modules/FindJNI.cmake | 2 ++ 1 file changed, 2 insertions(+) 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") -- cgit v0.12