summaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-12-20 23:00:24 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-12-28 22:30:51 (GMT)
commit732074d47e02c2e01fe794351c681d64b93a5f47 (patch)
tree116a4a4bdca56dd8b6c8094f5004bb2579763f46 /java/src
parent08f7c97077585f9a9c36dc9c6f976e53fafdc690 (diff)
downloadhdf5-732074d47e02c2e01fe794351c681d64b93a5f47.zip
hdf5-732074d47e02c2e01fe794351c681d64b93a5f47.tar.gz
hdf5-732074d47e02c2e01fe794351c681d64b93a5f47.tar.bz2
Add library INTERFACE and MPI to tools
Diffstat (limited to 'java/src')
-rw-r--r--java/src/jni/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/jni/CMakeLists.txt b/java/src/jni/CMakeLists.txt
index 9e6c099..10d1b6d 100644
--- a/java/src/jni/CMakeLists.txt
+++ b/java/src/jni/CMakeLists.txt
@@ -51,7 +51,7 @@ set (CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
########### JNI libraries always must be built shared ###############
add_library (${HDF5_JAVA_JNI_LIB_TARGET} SHARED ${HDF5_JAVA_JNI_CSRCS} ${HDF5_JAVA_JNI_CHDRS})
TARGET_C_PROPERTIES (${HDF5_JAVA_JNI_LIB_TARGET} SHARED " " " ")
-target_link_libraries (${HDF5_JAVA_JNI_LIB_TARGET} ${HDF5_LIB_TARGET})
+target_link_libraries (${HDF5_JAVA_JNI_LIB_TARGET} PUBLIC ${HDF5_LIB_TARGET})
set_target_properties (${HDF5_JAVA_JNI_LIB_TARGET} PROPERTIES FOLDER libraries/jni)
SET_GLOBAL_VARIABLE (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_JAVA_JNI_LIB_TARGET}")
H5_SET_LIB_OPTIONS (${HDF5_JAVA_JNI_LIB_TARGET} ${HDF5_JAVA_JNI_LIB_NAME} SHARED ${HDF5_JAVA_PACKAGE_SOVERSION})