From 8ce6b41de83e17d65fd78780e9a2de696fb5feda Mon Sep 17 00:00:00 2001 From: Olivier Hoenen Date: Wed, 31 Jan 2024 16:21:07 +0100 Subject: [PATCH] Update source and target for jdk, required for building with Java 21 (#26) --- source/wrappers/java/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/wrappers/java/CMakeLists.txt b/source/wrappers/java/CMakeLists.txt index 4dc6ded8..d2903303 100755 --- a/source/wrappers/java/CMakeLists.txt +++ b/source/wrappers/java/CMakeLists.txt @@ -18,7 +18,7 @@ endif() include( UseJava ) -set( CMAKE_JAVA_COMPILE_FLAGS "-source" "1.6" "-target" "1.6" ) +set( CMAKE_JAVA_COMPILE_FLAGS "-source" "1.8" "-target" "1.8" ) include_directories( ${CMAKE_SOURCE_DIR}/source