From: Kefu Chai Date: Fri, 4 May 2018 14:55:43 +0000 (+0800) Subject: cmake: bump up JDK version to 1.8 X-Git-Tag: v14.0.0~214^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=df27ed3a3806aaba41ca7bb1019e586d0b01a049;p=ceph.git cmake: bump up JDK version to 1.8 as JDK 7 is EOL. see http://www.oracle.com/technetwork/java/eol-135779.html and https://www.java.com/en/download/faq/java_7.xml Signed-off-by: Kefu Chai --- diff --git a/src/java/CMakeLists.txt b/src/java/CMakeLists.txt index b4cb3f8493270..62b5259c9d2c8 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.7" "-target" "1.7" "-Xlint:-options") +set(CMAKE_JAVA_COMPILE_FLAGS "-source" "1.8" "-target" "1.8" "-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})