Commit 88c765e6 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

add version to the libmysqld.so

parent bc8fb927
......@@ -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}")
......
......@@ -147,6 +147,6 @@ ENDIF()
IF(NOT DISABLE_SHARED)
MERGE_LIBRARIES(libmysqld SHARED mysqlserver EXPORTS ${CLIENT_API_FUNCTIONS}
COMPONENT Embedded)
COMPONENT Embedded VERSION ${SHARED_LIB_MAJOR_VERSION})
SET_TARGET_PROPERTIES(libmysqld PROPERTIES PREFIX "")
ENDIF()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment