Commit 216d5450 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

add version to the libmysqld.so

parent 360f53d9
...@@ -214,7 +214,7 @@ ENDMACRO() ...@@ -214,7 +214,7 @@ ENDMACRO()
#) #)
MACRO(MERGE_LIBRARIES) MACRO(MERGE_LIBRARIES)
MYSQL_PARSE_ARGUMENTS(ARG MYSQL_PARSE_ARGUMENTS(ARG
"EXPORTS;OUTPUT_NAME;COMPONENT" "EXPORTS;OUTPUT_NAME;COMPONENT;VERSION;SOVERSION"
"STATIC;SHARED;MODULE;NOINSTALL" "STATIC;SHARED;MODULE;NOINSTALL"
${ARGN} ${ARGN}
) )
...@@ -253,7 +253,16 @@ MACRO(MERGE_LIBRARIES) ...@@ -253,7 +253,16 @@ MACRO(MERGE_LIBRARIES)
IF(NOT ARG_NOINSTALL) IF(NOT ARG_NOINSTALL)
ADD_VERSION_INFO(${TARGET} SHARED SRC) ADD_VERSION_INFO(${TARGET} SHARED SRC)
ENDIF() ENDIF()
IF(ARG_VERSION)
SET(VERS VERSION ${ARG_VERSION})
ENDIF()
ADD_LIBRARY(${TARGET} ${LIBTYPE} ${SRC}) 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}) TARGET_LINK_LIBRARIES(${TARGET} ${LIBS})
IF(ARG_OUTPUT_NAME) IF(ARG_OUTPUT_NAME)
SET_TARGET_PROPERTIES(${TARGET} PROPERTIES OUTPUT_NAME "${ARG_OUTPUT_NAME}") SET_TARGET_PROPERTIES(${TARGET} PROPERTIES OUTPUT_NAME "${ARG_OUTPUT_NAME}")
......
...@@ -147,6 +147,6 @@ ENDIF() ...@@ -147,6 +147,6 @@ ENDIF()
IF(NOT DISABLE_SHARED) IF(NOT DISABLE_SHARED)
MERGE_LIBRARIES(libmysqld SHARED mysqlserver EXPORTS ${CLIENT_API_FUNCTIONS} MERGE_LIBRARIES(libmysqld SHARED mysqlserver EXPORTS ${CLIENT_API_FUNCTIONS}
COMPONENT Embedded) COMPONENT Embedded VERSION ${SHARED_LIB_MAJOR_VERSION})
SET_TARGET_PROPERTIES(libmysqld PROPERTIES PREFIX "") SET_TARGET_PROPERTIES(libmysqld PROPERTIES PREFIX "")
ENDIF() 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