ngompa / rpms / cmake

Forked from rpms/cmake 4 years ago
Clone
b6693a
diff -Nrup a/Modules/FindJNI.cmake b/Modules/FindJNI.cmake
b6693a
--- a/Modules/FindJNI.cmake	2013-05-15 13:38:12.000000000 -0400
b6693a
+++ b/Modules/FindJNI.cmake	2014-08-20 11:12:51.011021582 -0400
b6693a
@@ -45,6 +45,8 @@ macro(java_append_library_directories _v
b6693a
         # mips* machines are bi-endian mostly so processor does not tell
b6693a
         # endianess of the underlying system.
b6693a
         set(_java_libarch "${CMAKE_SYSTEM_PROCESSOR}" "mips" "mipsel" "mipseb")
b6693a
+    elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64le")
b6693a
+        set(_java_libarch "ppc64" "ppc64le")
b6693a
     elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64")
b6693a
         set(_java_libarch "ppc64")
b6693a
     elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)")