From 9f5fcab6661ccd1c64c0bd8ce1bba44f61702be2 Mon Sep 17 00:00:00 2001 From: "Andrew V. Jones" Date: Sat, 27 Mar 2021 19:12:28 +0000 Subject: [PATCH] When building ANTLR via CMake, do not require javac #6224 (#6225) As title; attempts to correct #6224. Signed-off-by: Andrew V. Jones andrewvaughanj@gmail.com --- cmake/FindANTLR3.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindANTLR3.cmake b/cmake/FindANTLR3.cmake index 2ca66ff0b..58ba1cf65 100644 --- a/cmake/FindANTLR3.cmake +++ b/cmake/FindANTLR3.cmake @@ -95,7 +95,7 @@ if(NOT ANTLR3_FOUND_SYSTEM) BUILD_BYPRODUCTS /lib/libantlr3c.a ) - find_package(Java REQUIRED) + find_package(Java COMPONENTS Runtime REQUIRED) set(ANTLR3_BINARY ${Java_JAVA_EXECUTABLE} -cp "${DEPS_BASE}/share/java/antlr-3.4-complete.jar" org.antlr.Tool) set(ANTLR3_INCLUDE_DIR "${DEPS_BASE}/include/") -- 2.30.2