Skip to content

Use URDF_MAJOR_VERSION for SOVERSION#248

Open
j-rivero wants to merge 1 commit intoros:rollingfrom
j-rivero:jrivero/soversion
Open

Use URDF_MAJOR_VERSION for SOVERSION#248
j-rivero wants to merge 1 commit intoros:rollingfrom
j-rivero:jrivero/soversion

Conversation

@j-rivero
Copy link

Related to #220

Updated the SOVERSION property to use ${URDF_MAJOR_VERSION} instead of ${URDF_MAJOR_MINOR_VERSION} in the add_urdfdom_library macro in urdf_parser/CMakeLists.txt.

Breaking change: beware that this is a potential breaking change for downstream consumers of the library so better done in a next major bump.

Signed-off-by: Jose Luis Rivero <jrivero@honurobotics.com>
set_target_properties(${add_urdfdom_library_LIBNAME} PROPERTIES
DEFINE_SYMBOL URDFDOM_EXPORTS
SOVERSION ${URDF_MAJOR_MINOR_VERSION})
SOVERSION ${URDF_MAJOR_VERSION})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SOVERSION ${URDF_MAJOR_VERSION})
VERSION ${URDF_MAJOR_MINOR_VERSION}
SOVERSION ${URDF_MAJOR_VERSION})

Should we also use the VERSION for the target?

https://cmake.org/cmake/help/latest/prop_tgt/SOVERSION.html

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you think @j-rivero?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants