forked from lijiext/lammps
need to look for Java Development components, not just JNI parts
This commit is contained in:
parent
a14b38ce21
commit
bc43865f45
|
@ -43,6 +43,7 @@ if(BUILD_SWIG_JAVA)
|
|||
set_property(SOURCE lammps.i PROPERTY SWIG_MODULE_NAME javalammps)
|
||||
swig_add_library(javalammps TYPE MODULE LANGUAGE java SOURCES lammps.i)
|
||||
find_package(JNI REQUIRED)
|
||||
find_package(Java COMPONENTS Development REQUIRED)
|
||||
target_include_directories(javalammps PRIVATE ${JNI_INCLUDE_DIRS})
|
||||
swig_link_libraries(javalammps PRIVATE lammps ${JNI_LIBRARIES})
|
||||
configure_file(run_java_example.sh run_java_example.sh COPYONLY)
|
||||
|
|
Loading…
Reference in New Issue