From 517e31c6397c219178cd7acc3fae55e5dc2f27ac Mon Sep 17 00:00:00 2001 From: Daid Date: Mon, 30 Dec 2024 11:13:44 +0100 Subject: [PATCH] Try to use java 8 instead of 7 as 7 is no longer supported by JDK-22 --- SeriousProton2.include.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SeriousProton2.include.cmake b/SeriousProton2.include.cmake index 5ab3983..3928b5c 100644 --- a/SeriousProton2.include.cmake +++ b/SeriousProton2.include.cmake @@ -296,7 +296,7 @@ macro(android_apk NAME ASSETS_FOLDER) file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/java_compiled/") add_custom_command( OUTPUT "java_compiled/sp2/${NAME}/R.class" - COMMAND ${Java_JAVAC_EXECUTABLE} ARGS -source 1.7 -target 1.7 -classpath "${ANDROID_PLATFORM_JAR}" ${JAVA_SOURCES} -d "${CMAKE_CURRENT_BINARY_DIR}/java_compiled/" + COMMAND ${Java_JAVAC_EXECUTABLE} ARGS -source 1.8 -target 1.8 -classpath "${ANDROID_PLATFORM_JAR}" ${JAVA_SOURCES} -d "${CMAKE_CURRENT_BINARY_DIR}/java_compiled/" DEPENDS ${JAVA_SOURCES} ) # Convert sources into dex file