Skip to content

Commit d66cb58

Browse files
committed
use Java 8 for compilation
1 parent 8c1b775 commit d66cb58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JLinkExamples/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ include(UseJava)
44

55
# add J/Link jar to Java compiler include path
66
set (CMAKE_JAVA_INCLUDE_PATH "${Mathematica_JLink_JAR_FILE}")
7-
# force Java 6 compilation of example sources, J/Link is not compatible with Java 7
7+
# force Java 8 compilation of example sources
88
# sample source files use Windows character encoding
9-
set (CMAKE_JAVA_COMPILE_FLAGS "-source" "1.7" "-target" "1.7" "-encoding" "Cp1252")
9+
set (CMAKE_JAVA_COMPILE_FLAGS "-source" "1.8" "-target" "1.8" "-encoding" "Cp1252")
1010

1111
if (NOT CYGWIN)
1212
# UseJava module cannot handle Cygwin path syntax

0 commit comments

Comments
 (0)