summaryrefslogtreecommitdiff
path: root/Modules/FindJNI.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-09-23 14:38:51 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2005-09-23 14:38:51 -0400
commit1d031367d929636ccc83dc860221a54e6864bbf5 (patch)
treed6828500a090bd95e6a8813ac670edce01d33622 /Modules/FindJNI.cmake
parent9be341383e3b843c75a825e24834d631ffb81613 (diff)
downloadcmake-1d031367d929636ccc83dc860221a54e6864bbf5.tar.gz
ENH: java fixes from Mathieu
Diffstat (limited to 'Modules/FindJNI.cmake')
-rw-r--r--Modules/FindJNI.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindJNI.cmake b/Modules/FindJNI.cmake
index 57cfe37833..70d786c4a8 100644
--- a/Modules/FindJNI.cmake
+++ b/Modules/FindJNI.cmake
@@ -11,23 +11,28 @@
SET(JAVA_AWT_LIBRARY_DIRECTORIES
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.4;JavaHome]/lib"
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/lib"
+ $ENV{JAVA_HOME}/jre/lib/i386
+ $ENV{JAVA_HOME}/jre/lib/amd64
/usr/lib
/usr/local/lib
/usr/lib/java/jre/lib/i386
/usr/local/lib/java/jre/lib/i386
/usr/lib/j2sdk1.4-sun/jre/lib/i386
/usr/lib/j2sdk1.5-sun/jre/lib/i386
+ /opt/sun-jdk-1.5.0.04/jre/lib/amd64
)
SET(JAVA_AWT_INCLUDE_DIRECTORIES
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.4;JavaHome]/include"
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/include"
+ $ENV{JAVA_HOME}/include
/usr/include
/usr/local/include
/usr/lib/java/include
/usr/local/lib/java/include
/usr/lib/j2sdk1.4-sun/include
/usr/lib/j2sdk1.5-sun/include
+ /opt/sun-jdk-1.5.0.04/include
)
FOREACH(JAVA_PROG "${JAVA_RUNTIME}" "${JAVA_COMPILE}" "${JAVA_ARCHIVE}")