1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Tue, 10 May 2022 00:34:53 +0200
Subject: Set proper SONAME
Forwarded: not-needed
---
CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3db4b1f..284f869 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -132,6 +132,9 @@ if(BUILD_TESTING AND NOT RCUTILS_DISABLE_FAULT_INJECTION)
endif()
target_link_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS})
+if(RCUTILS_SOVERSION)
+ set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${RCUTILS_SOVERSION})
+endif()
# Needed if pthread is used for thread local storage.
if(IOS AND IOS_SDK_VERSION LESS 10.0)
|