3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-19 15:04:42 +00:00

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>
This commit is contained in:
bu99ed 2026-01-04 00:26:40 +01:00 committed by Nikolaj Bjorner
parent b5578ec74e
commit cea0f7c427

View file

@ -188,6 +188,8 @@ add_custom_target(build_z3_java_bindings
# TODO: Should we set ``CMAKE_JNI_TARGET`` to ``TRUE``?
# REMARK: removed VERSION to fix issue with using this to create installations.
set(CMAKE_JAVA_COMPILE_FLAGS -source 1.8 -target 1.8)
add_jar(z3JavaJar
SOURCES ${Z3_JAVA_JAR_SOURCE_FILES_FULL_PATH}
OUTPUT_NAME ${Z3_JAVA_PACKAGE_NAME}