summaryrefslogtreecommitdiffstats
path: root/Modules/FindJava.cmake
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2003-10-16 15:05:04 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2003-10-16 15:05:04 (GMT)
commit296e73180844791bf1a8ec51dad489625ca8c9f3 (patch)
treefc24b1bcd18952596ac4b686b14b5c6e0a846a3d /Modules/FindJava.cmake
parent4d2ca08bc7a91fcc207ec481323796acdf68eec6 (diff)
downloadCMake-296e73180844791bf1a8ec51dad489625ca8c9f3.zip
CMake-296e73180844791bf1a8ec51dad489625ca8c9f3.tar.gz
CMake-296e73180844791bf1a8ec51dad489625ca8c9f3.tar.bz2
FIX: for Windows users, it seems logical to favor native win32 installation before Cygwin ones. Otherwise you can end up with bad mixes (part of the java tools were picked from the SDK, part from Cygwin)
Diffstat (limited to 'Modules/FindJava.cmake')
-rw-r--r--Modules/FindJava.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindJava.cmake b/Modules/FindJava.cmake
index baf6b30..25ab1e1 100644
--- a/Modules/FindJava.cmake
+++ b/Modules/FindJava.cmake
@@ -9,13 +9,13 @@
#
SET(JAVA_BIN_PATH
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.4;JavaHome]/bin"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/bin"
/usr/bin
/usr/lib/java/bin
/usr/share/java/bin
/usr/local/bin
/usr/local/java/bin
- "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.4;JavaHome]/bin"
- "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/bin"
)
FIND_PROGRAM(JAVA_RUNTIME
NAMES java