Skip to content

Commit ff7d0fb

Browse files
bu99edbu99ed
andauthored
set source & target version java compile flags in cmake build to match the python/make build for consistent bytecode generation (#8112)
Co-authored-by: bu99ed <bu99ed@localhost>
1 parent 5dc8127 commit ff7d0fb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/api/java/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ add_custom_target(build_z3_java_bindings
187187
# TODO: Should we set ``CMAKE_JNI_TARGET`` to ``TRUE``?
188188
# REMARK: removed VERSION to fix issue with using this to create installations.
189189

190+
set(CMAKE_JAVA_COMPILE_FLAGS -source 1.8 -target 1.8)
191+
190192
add_jar(z3JavaJar
191193
SOURCES ${Z3_JAVA_JAR_SOURCE_FILES_FULL_PATH}
192194
OUTPUT_NAME ${Z3_JAVA_PACKAGE_NAME}

0 commit comments

Comments
 (0)