forked from pool/cmake
1b99c7a5b7
- Add ppc64le to FindJNI - added patches: * cmake-jni-ppc64le.patch OBS-URL: https://build.opensuse.org/request/show/222652 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=139
14 lines
723 B
Diff
14 lines
723 B
Diff
Index: cmake-2.8.12.1/Modules/FindJNI.cmake
|
|
===================================================================
|
|
--- cmake-2.8.12.1.orig/Modules/FindJNI.cmake
|
|
+++ cmake-2.8.12.1/Modules/FindJNI.cmake
|
|
@@ -45,6 +45,8 @@ macro(java_append_library_directories _v
|
|
# mips* machines are bi-endian mostly so processor does not tell
|
|
# endianess of the underlying system.
|
|
set(_java_libarch "${CMAKE_SYSTEM_PROCESSOR}" "mips" "mipsel" "mipseb")
|
|
+ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64le")
|
|
+ set(_java_libarch "ppc64le")
|
|
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64")
|
|
set(_java_libarch "ppc64")
|
|
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)")
|