summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-05-14 14:27:40 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-05-14 14:27:40 (GMT)
commiteb9323eb1aa2beb32d933c3e09a160939ff31682 (patch)
tree98b712a36e1581eef393493ec8f877bce6f6d2a0
parentee58e94d62e33a06625f09b6a89ff3bbdeaf510e (diff)
parent7953867ba46223dfab373ce58cff0a4bc20c3864 (diff)
downloadCMake-eb9323eb1aa2beb32d933c3e09a160939ff31682.zip
CMake-eb9323eb1aa2beb32d933c3e09a160939ff31682.tar.gz
CMake-eb9323eb1aa2beb32d933c3e09a160939ff31682.tar.bz2
Merge topic 'FindJava-openjdk-8'
7953867b FindJava: Fix OpenJDK 8 version detection (#15565)
-rw-r--r--Modules/FindJava.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindJava.cmake b/Modules/FindJava.cmake
index bb73853..9e43174 100644
--- a/Modules/FindJava.cmake
+++ b/Modules/FindJava.cmake
@@ -137,7 +137,7 @@ if(Java_JAVA_EXECUTABLE)
elseif(var MATCHES "java full version \"kaffe-([0-9]+\\.[0-9]+\\.[0-9_]+)\"")
# Kaffe style
set(Java_VERSION_STRING "${CMAKE_MATCH_1}")
- elseif(var MATCHES "openjdk version \"([0-9]+\\.[0-9]+\\.[0-9_]+)\"")
+ elseif(var MATCHES "openjdk version \"([0-9]+\\.[0-9]+\\.[0-9_]+.*)\"")
# OpenJDK ver 1.7.x on OpenBSD
set(Java_VERSION_STRING "${CMAKE_MATCH_1}")
else()