3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00

[CMake] Change default install location for `com.microsoft.z3.jar`.

It seems ``.jar`` files are typically installed into
``/usr/share/java``.
This commit is contained in:
Dan Liew 2016-04-18 11:28:23 +01:00
parent 48550732bf
commit 8f69728703

View file

@ -214,14 +214,15 @@ add_jar(z3JavaJar
option(INSTALL_JAVA_BINDINGS "Install Java bindings when invoking install target" ON)
if (INSTALL_JAVA_BINDINGS)
# Provide cache variables for the install locations that the user can change.
# FIXME: I don't think these defaults install locations conform to the Debian
# packaging guidelines or any packaging guidelines for that matter...
# This defaults to ``/usr/local/java`` which seems to be the location for ``.jar``
# files on Linux distributions
set(Z3_JAVA_JAR_INSTALLDIR
"${CMAKE_INSTALL_LIBDIR}"
"${CMAKE_INSTALL_DATAROOTDIR}/java"
CACHE
PATH
"Directory to install Z3 Java jar file relative to install prefix"
)
# FIXME: I don't think this the right installation location
set(Z3_JAVA_JNI_LIB_INSTALLDIR
"${CMAKE_INSTALL_LIBDIR}"
CACHE