Remove explicitly required Java version, because CMake fails to handle it correctly.

GitOrigin-RevId: 1501a532311feafdf43a6812efea7ca4308c7b30
This commit is contained in:
levlam 2020-08-28 16:00:55 +03:00
parent 3d8d4bcf1c
commit bfa807fa41

View File

@ -15,7 +15,7 @@ endif()
message(STATUS "Found JNI: ${JNI_INCLUDE_DIRS} ${JNI_LIBRARIES}")
if (NOT Java_FOUND)
find_package(Java 1.6 REQUIRED)
find_package(Java REQUIRED)
endif()
message(STATUS "Found Java: ${Java_JAVAC_EXECUTABLE} ${Java_JAVADOC_EXECUTABLE}")