Skip to content

Commit

Permalink
Add project soversion information to backward library (#133)
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 <logans@cottsay.net>
  • Loading branch information
cottsay authored Feb 1, 2024
1 parent fd1e484 commit f84901e
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 f84901e

Please sign in to comment.