[build] Remove java requirement from cmake (#7395)

It was leftover from the failed protoc stuff
This commit is contained in:
Thad House
2024-11-15 14:45:20 +00:00
committed by GitHub
parent c289562a06
commit 453335e354

View File

@@ -132,9 +132,6 @@ if(WITH_JAVA OR WITH_JAVA_SOURCE)
set(CMAKE_JAVA_COMPILE_FLAGS "-encoding" "UTF8" "-Xlint:unchecked")
find_package(Java REQUIRED COMPONENTS Development)
find_package(JNI REQUIRED COMPONENTS JVM)
else()
# Protoc requires the java runtime
find_package(Java REQUIRED COMPONENTS Runtime)
endif()
if(WITH_DOCS)