Skip to content

Commit

Permalink
Add project soversion information to backward library
Browse files Browse the repository at this point in the history
The library being installed doesn't have a SOVERSION like other
libraries created in Gazebo projects, and is flagged as a packaging
error by rpmlint.

Signed-off-by: Scott K Logan <[email protected]>
  • Loading branch information
cottsay committed Jan 25, 2024
1 parent f10c89e commit bba3e65
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ cmake_policy(PUSH)
cmake_policy(SET CMP0042 NEW)
add_library(backward SHARED backward.cc)
target_link_libraries(backward PUBLIC Backward::Backward)
set_target_properties(backward PROPERTIES OUTPUT_NAME ${PROJECT_NAME}-backward)
set_target_properties(backward PROPERTIES CXX_STANDARD 14)
set_target_properties(backward PROPERTIES
CXX_STANDARD 14
OUTPUT_NAME ${PROJECT_NAME}-backward
SOVERSION ${PROJECT_VERSION_MAJOR}
VERSION ${PROJECT_VERSION_FULL})
cmake_policy(POP)

if(MSVC)
Expand Down

0 comments on commit bba3e65

Please sign in to comment.