SHA256
3
0
forked from pool/cmake
cmake/ibm-java-paths.diff

40 lines
976 B
Diff

--- Modules/FindJNI.cmake
+++ Modules/FindJNI.cmake
@@ -22,6 +22,13 @@
$ENV{JAVA_HOME}/jre/lib/i386
$ENV{JAVA_HOME}/jre/lib/amd64
$ENV{JAVA_HOME}/jre/lib/ppc
+ $ENV{JAVA_HOME}/jre/lib/ppc/classic
+ $ENV{JAVA_HOME}/jre/lib/ppc64/classic
+ $ENV{JAVA_HOME}/jre/lib/ia64
+ $ENV{JAVA_HOME}/jre/lib/s390
+ $ENV{JAVA_HOME}/jre/lib/s390/classic
+ $ENV{JAVA_HOME}/jre/lib/s390x
+ $ENV{JAVA_HOME}/jre/lib/s390x/classic
/usr/lib
/usr/local/lib
/usr/lib/jvm/java/lib
@@ -51,6 +58,7 @@
"${dir}"
"${dir}/client"
"${dir}/server"
+ "${dir}/jrockit"
)
ENDFOREACH(dir)
@@ -166,7 +174,12 @@
SET(JNI_INCLUDE_DIRS
${JAVA_INCLUDE_PATH}
- ${JAVA_INCLUDE_PATH2}
- ${JAVA_AWT_INCLUDE_PATH}
)
+if(JAVA_INCLUDE_PATH2)
+ SET(JNI_INCLUDE_DIRS ${JNI_INCLUDE_DIRS} ${JAVA_INCLUDE_PATH2})
+endif(JAVA_INCLUDE_PATH2)
+
+if(JAVA_AWT_INCLUDE_PATH)
+ SET(JNI_INCLUDE_DIRS ${JNI_INCLUDE_DIRS} ${JAVA_AWT_INCLUDE_PATH})
+endif(JAVA_AWT_INCLUDE_PATH)