File: 0002-Set-proper-SONAME.patch

package info (click to toggle)
ros-class-loader 2.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 412 kB
  • sloc: cpp: 2,286; xml: 30; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 701 bytes parent folder | download | duplicates (2)
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 796f31f..b7cea8b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -56,6 +56,9 @@ if(WIN32)
   # which is appropriate when building the dll but not consuming it.
   target_compile_definitions(${PROJECT_NAME} PRIVATE "CLASS_LOADER_BUILDING_DLL")
 endif()
+if(CLASS_LOADER_SOVERSION)
+  set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${CLASS_LOADER_SOVERSION})
+endif()
 
 if(BUILD_TESTING)
   find_package(ament_lint_auto QUIET)