From: Ceph Packaging Team Date: Tue, 7 Jan 2020 19:50:28 +0000 (+0000) Subject: update-java-source-target-flags X-Git-Tag: archive/raspbian/14.2.5-3+rpi1~6^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6c2d3f96f08074e602a2fedf3a2707dff6e35041;p=ceph.git update-java-source-target-flags Gbp-Pq: Name update-java-source-target-flags.patch --- diff --git a/src/java/CMakeLists.txt b/src/java/CMakeLists.txt index 62b5259c9..ce470db2a 100644 --- a/src/java/CMakeLists.txt +++ b/src/java/CMakeLists.txt @@ -21,7 +21,7 @@ set(java_srcs # warning: [options] bootstrap class path not set in conjunction with -source 1.7 # as per # https://blogs.oracle.com/darcy/entry/bootclasspath_older_source -set(CMAKE_JAVA_COMPILE_FLAGS "-source" "1.8" "-target" "1.8" "-Xlint:-options") +set(CMAKE_JAVA_COMPILE_FLAGS "--release" "7" "-Xlint:-options") set(jni_header_dir "${CMAKE_CURRENT_BINARY_DIR}/native") if(CMAKE_VERSION VERSION_LESS 3.11) set(CMAKE_JAVA_COMPILE_FLAGS ${CMAKE_JAVA_COMPILE_FLAGS} "-h" ${jni_header_dir})