aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni/tinyb/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'java/jni/tinyb/CMakeLists.txt')
-rw-r--r--java/jni/tinyb/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/java/jni/tinyb/CMakeLists.txt b/java/jni/tinyb/CMakeLists.txt
index 6ae9b25c..0e98beb3 100644
--- a/java/jni/tinyb/CMakeLists.txt
+++ b/java/jni/tinyb/CMakeLists.txt
@@ -43,6 +43,14 @@ set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
add_library (javatinyb SHARED ${tinyb_JNI_SRCS})
target_link_libraries(javatinyb ${JNI_LIBRARIES} tinyb)
+if(USE_STRIP)
+add_custom_command(TARGET javatinyb POST_BUILD
+ COMMAND ${STRIP} ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}javatinyb${CMAKE_SHARED_LIBRARY_SUFFIX}.${tinyb_VERSION_STRING}
+ COMMENT "stripping javatinyb"
+ VERBATIM
+ )
+endif(USE_STRIP)
+
set_target_properties(
javatinyb
PROPERTIES