summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2017-07-28 11:22:23 (GMT)
committerBrad King <brad.king@kitware.com>2017-08-02 15:15:42 (GMT)
commitf71f1943dbbf37fbe2af0d1d121e44ad2c063a71 (patch)
tree45914a988adae5cbb6933ff0ee2da9d353aeadf1 /Modules
parent833132917c416be11299a17bac498b4bbf4eecd0 (diff)
parente42fa012b6c3e1ce8f7c8bdcaa87f768d8f4037e (diff)
downloadCMake-f71f1943dbbf37fbe2af0d1d121e44ad2c063a71.zip
CMake-f71f1943dbbf37fbe2af0d1d121e44ad2c063a71.tar.gz
CMake-f71f1943dbbf37fbe2af0d1d121e44ad2c063a71.tar.bz2
Merge branch 'FindJava_earlyAccessDebian' into release-3.9
Tested-by: Felix Geyer <debfx@fobos.de> Merge-request: !1080
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindJava.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindJava.cmake b/Modules/FindJava.cmake
index 3d32560..d762452 100644
--- a/Modules/FindJava.cmake
+++ b/Modules/FindJava.cmake
@@ -143,7 +143,7 @@ if(Java_JAVA_EXECUTABLE)
if(var MATCHES "java version \"([0-9]+\\.[0-9]+\\.[0-9_.]+.*)\"")
# This is most likely Sun / OpenJDK, or maybe GCJ-java compat layer
set(Java_VERSION_STRING "${CMAKE_MATCH_1}")
- elseif(var MATCHES "openjdk version \"([0-9]+)-[a-z]+\"")
+ elseif(var MATCHES "openjdk version \"([0-9]+)-[A-Za-z]+\"")
# OpenJDK 9 early access builds or locally built
set(Java_VERSION_STRING "1.${CMAKE_MATCH_1}.0")
elseif(var MATCHES "java full version \"kaffe-([0-9]+\\.[0-9]+\\.[0-9_]+)\"")