FindJava not working with OpenJDK 18
I'm trying to use CMake with OpenJDK 18 which is not working, due to the hardcoded regex assumption in FindJava.cmake, which does not work with the latest OpenJDK version printout.
Output from OpenJDK 18:
$ java -version
openjdk version "18" 2022-03-22
OpenJDK Runtime Environment (build 18+36-2087)
OpenJDK 64-Bit Server VM (build 18+36-2087, mixed mode, sharing)
This is a design choice from the developers of OpenJDK: https://openjdk.java.net/jeps/223
Best regards, Tobias