From bba3e650d36c4dd27b9c00ece554fefcac8092ad Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Thu, 25 Jan 2024 11:05:28 -0600 Subject: [PATCH] Add project soversion information to backward library 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 --- src/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a80a014..bc82749 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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)