summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorVladislav Vaintroub <vv221804@astra04>2009-12-05 19:59:13 +0100
committerVladislav Vaintroub <vv221804@astra04>2009-12-05 19:59:13 +0100
commit2e6270311467f557a424a15b03d8d52c5b0ea92d (patch)
tree61f7a9302a5f30184b82502163d71376567dc324 /libmysql
parent92642d06397557e279cb377b1db4619de5ed199c (diff)
downloadmariadb-git-2e6270311467f557a424a15b03d8d52c5b0ea92d.tar.gz
set version and soversionn for client shared library
Diffstat (limited to 'libmysql')
-rwxr-xr-xlibmysql/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/libmysql/CMakeLists.txt b/libmysql/CMakeLists.txt
index 4fb6e10409d..efd6d553be4 100755
--- a/libmysql/CMakeLists.txt
+++ b/libmysql/CMakeLists.txt
@@ -163,7 +163,11 @@ IF(NOT DISABLE_SHARED)
MERGE_LIBRARIES(libmysql SHARED ${LIBS} EXPORTS ${CLIENT_API_FUNCTIONS})
IF(UNIX)
# Name of shared library is mysqlclient on Unix
- SET_TARGET_PROPERTIES(libmysql PROPERTIES OUTPUT_NAME mysqlclient)
+ SET_TARGET_PROPERTIES(libmysql PROPERTIES
+ OUTPUT_NAME mysqlclient
+ VERSION "${SHARED_LIB_MAJOR_VERSION}.0.0"
+ SOVERSION "${SHARED_LIB_MAJOR_VERSION}")
+
# clean direct output needs to be set several targets have the same name
#(mysqlclient in this case)
SET_TARGET_PROPERTIES(mysqlclient PROPERTIES CLEAN_DIRECT_OUTPUT 1)