From 359fe8e1f40f75c6c59cc6e6ce85dde01d2754c0 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Wed, 11 Mar 2015 22:48:38 -0400 Subject: [PATCH] Added major version to python/java native libs --- src/bindings/java/CMakeLists.txt | 1 + src/bindings/python/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/src/bindings/java/CMakeLists.txt b/src/bindings/java/CMakeLists.txt index ad0567c..d312e52 100644 --- a/src/bindings/java/CMakeLists.txt +++ b/src/bindings/java/CMakeLists.txt @@ -18,6 +18,7 @@ if (${JNI_FOUND} MATCHES "TRUE") add_library(openalprjni SHARED ${jni_source_files}) + set_target_properties(openalprjni PROPERTIES SOVERSION ${OPENALPR_MAJOR_VERSION}) TARGET_LINK_LIBRARIES(openalprjni openalpr) diff --git a/src/bindings/python/CMakeLists.txt b/src/bindings/python/CMakeLists.txt index 50226bf..6466d87 100644 --- a/src/bindings/python/CMakeLists.txt +++ b/src/bindings/python/CMakeLists.txt @@ -12,6 +12,7 @@ set(python_source_files add_library(openalprpy SHARED ${python_source_files}) +set_target_properties(openalprpy PROPERTIES SOVERSION ${OPENALPR_MAJOR_VERSION}) TARGET_LINK_LIBRARIES(openalprpy openalpr)