lcio
diff -u -r1.3 -r1.4
--- FindJAVA.cmake 12 Jul 2007 12:45:00 -0000 1.3
+++ FindJAVA.cmake 13 Jul 2007 17:36:09 -0000 1.4
@@ -75,7 +75,7 @@
STRING( REGEX MATCH " symbolic link to " java_link_found "${out_tmp}" )
IF( java_link_found )
# get the file to where the link points to
- STRING( REGEX REPLACE ".* symbolic link to (.*)" "\\1" out_regex "${out_tmp}" )
+ STRING( REGEX REPLACE ".* symbolic link to[^/]+([^'`´]+).*" "\\1" out_regex "${out_tmp}" )
IF( NOT JAVA_FIND_QUIETLY )
MESSAGE( STATUS "Java binary ${java_bin} is a symbolic link to ${out_regex}" )
ENDIF()