Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #104 from orocos-toolchain/fix-typekit-plugin-vers…
Browse files Browse the repository at this point in the history
…ion-so

cmake: add SOVERSION for typekits and plugins
  • Loading branch information
meyerj committed Jun 30, 2015
2 parents 5a9451b + 0c43592 commit 4179556
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/rtt_macros.cmake
Expand Up @@ -41,8 +41,13 @@ ENDMACRO( GLOBAL_ADD_SRC )
#
macro(ADD_RTT_TYPEKIT name version)
ADD_LIBRARY(${name}-${OROCOS_TARGET}_plugin SHARED ${ARGN})
STRING( REGEX MATCHALL "[0-9]+" versions ${version} )
LIST( GET versions 0 version_major)
LIST( GET versions 1 version_minor)
LIST( GET versions 2 version_patch)
SET_TARGET_PROPERTIES( ${name}-${OROCOS_TARGET}_plugin PROPERTIES
VERSION "${version}"
SOVERSION "${version_major}.${version_minor}"
OUTPUT_NAME ${name}-${OROCOS_TARGET}
COMPILE_DEFINITIONS "${RTT_DEFINITIONS}"
INSTALL_RPATH_USE_LINK_PATH 1
Expand Down Expand Up @@ -109,8 +114,13 @@ endmacro(ADD_RTT_TYPEKIT name)
#
macro(ADD_RTT_PLUGIN name version)
ADD_LIBRARY(${name}-${OROCOS_TARGET}_plugin SHARED ${ARGN})
STRING( REGEX MATCHALL "[0-9]+" versions ${version} )
LIST( GET versions 0 version_major)
LIST( GET versions 1 version_minor)
LIST( GET versions 2 version_patch)
SET_TARGET_PROPERTIES( ${name}-${OROCOS_TARGET}_plugin PROPERTIES
VERSION "${version}"
SOVERSION "${version_major}.${version_minor}"
OUTPUT_NAME ${name}-${OROCOS_TARGET}
COMPILE_DEFINITIONS "${RTT_DEFINITIONS}"
INSTALL_RPATH_USE_LINK_PATH 1
Expand Down

0 comments on commit 4179556

Please sign in to comment.