summaryrefslogtreecommitdiffstats
path: root/java/src/jni
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-03-24 21:45:12 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-03-24 21:45:12 (GMT)
commit1505fa14987c46ee4a698cd272cdaa62d8399ef8 (patch)
tree8067fb1064dc8d823ff9c62b91196a9b28be567e /java/src/jni
parent77bac54352a61bcd746df9c848e905ae559330df (diff)
downloadhdf5-1505fa14987c46ee4a698cd272cdaa62d8399ef8.zip
hdf5-1505fa14987c46ee4a698cd272cdaa62d8399ef8.tar.gz
hdf5-1505fa14987c46ee4a698cd272cdaa62d8399ef8.tar.bz2
TRILAB-192 restrict extensive warnings to libraries
Diffstat (limited to 'java/src/jni')
-rw-r--r--java/src/jni/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/src/jni/CMakeLists.txt b/java/src/jni/CMakeLists.txt
index d945c33..dc9b223 100644
--- a/java/src/jni/CMakeLists.txt
+++ b/java/src/jni/CMakeLists.txt
@@ -79,6 +79,9 @@ add_library (${HDF5_JAVA_JNI_LIB_TARGET} SHARED ${HDF5_JAVA_JNI_CSRCS} ${HDF5_JA
target_include_directories (${HDF5_JAVA_JNI_LIB_TARGET}
PRIVATE "${HDF5_SRC_DIR};${HDF5_BINARY_DIR};${HDF5_JAVA_JNI_SOURCE_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>"
)
+target_compile_options(${HDF5_JAVA_JNI_LIB_TARGET}
+ PRIVATE "${HDF5_CMAKE_C_FLAGS}"
+)
TARGET_C_PROPERTIES (${HDF5_JAVA_JNI_LIB_TARGET} SHARED)
target_link_libraries (${HDF5_JAVA_JNI_LIB_TARGET} PUBLIC ${HDF5_LIBSH_TARGET})
set_target_properties (${HDF5_JAVA_JNI_LIB_TARGET} PROPERTIES FOLDER libraries/jni)