File: 0002-Set-proper-SONAME.patch

package info (click to toggle)
ros2-rcutils 6.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,280 kB
  • sloc: ansic: 7,044; cpp: 6,261; python: 256; xml: 28; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 683 bytes parent folder | download
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)