diff options
author | Vladislav Vaintroub <wlad@localhost.localdomain> | 2011-11-07 22:20:44 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@localhost.localdomain> | 2011-11-07 22:20:44 +0100 |
commit | 216d5450e7b3f8455175c586b6fe73c0825dd89b (patch) | |
tree | faa58e1beb3c4eaa492b78a9ce4cb38d1648975f /cmake/libutils.cmake | |
parent | 360f53d975d52e609acc3949f59c25944eb4fb9d (diff) | |
download | mariadb-git-216d5450e7b3f8455175c586b6fe73c0825dd89b.tar.gz |
add version to the libmysqld.so
Diffstat (limited to 'cmake/libutils.cmake')
-rw-r--r-- | cmake/libutils.cmake | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cmake/libutils.cmake b/cmake/libutils.cmake index 89eb5a74d80..6dbaaef57aa 100644 --- a/cmake/libutils.cmake +++ b/cmake/libutils.cmake @@ -214,7 +214,7 @@ ENDMACRO() #) MACRO(MERGE_LIBRARIES) MYSQL_PARSE_ARGUMENTS(ARG - "EXPORTS;OUTPUT_NAME;COMPONENT" + "EXPORTS;OUTPUT_NAME;COMPONENT;VERSION;SOVERSION" "STATIC;SHARED;MODULE;NOINSTALL" ${ARGN} ) @@ -253,7 +253,16 @@ MACRO(MERGE_LIBRARIES) IF(NOT ARG_NOINSTALL) ADD_VERSION_INFO(${TARGET} SHARED SRC) ENDIF() + IF(ARG_VERSION) + SET(VERS VERSION ${ARG_VERSION}) + ENDIF() ADD_LIBRARY(${TARGET} ${LIBTYPE} ${SRC}) + IF (ARG_VERSION) + SET_TARGET_PROPERTIES(${TARGET} PROPERTIES VERSION ${ARG_VERSION}) + ENDIF() + IF (ARG_SOVERSION) + SET_TARGET_PROPERTIES(${TARGET} PROPERTIES SOVERSION ${ARG_VERSION}) + ENDIF() TARGET_LINK_LIBRARIES(${TARGET} ${LIBS}) IF(ARG_OUTPUT_NAME) SET_TARGET_PROPERTIES(${TARGET} PROPERTIES OUTPUT_NAME "${ARG_OUTPUT_NAME}") |