mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
src/CMakeLists.txt: Always install .jar files in <prefix>/lib/java/
In certain cases (debian/ubuntu multi-arch machines) the jar files were bing installed in <prefix>/lib/lib/java/. Regardless of platform or architecture, these files need to be in <prefix>/lib/java/ . Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
parent
dc48698d86
commit
dd3e5290b2
@ -231,10 +231,10 @@ macro(upm_swig_java)
|
||||
)
|
||||
|
||||
install (TARGETS javaupm_${libname} LIBRARY DESTINATION ${LIB_INSTALL_DIR})
|
||||
# Java jar always goes under lib. This fixes the case where LIB_INSTALL_DIR
|
||||
# is lib64, in which case they still install to lib: lib64/../lib
|
||||
# Java jar files always need to go under lib/java, regardless of
|
||||
# architecture.
|
||||
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/upm_${libname}.jar
|
||||
DESTINATION ${LIB_INSTALL_DIR}/../lib/java)
|
||||
DESTINATION lib/java)
|
||||
|
||||
if (NOT DEFINED $ENV{JAVA_HOME_NATIVE})
|
||||
set (JAVAC $ENV{JAVA_HOME}/bin/javac)
|
||||
|
Loading…
x
Reference in New Issue
Block a user