ngompa / rpms / cmake

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