File: soversion.patch

package info (click to toggle)
libuvc 0.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 780 kB
  • sloc: ansic: 5,382; python: 249; makefile: 22
file content (17 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: add soversion to shared library
Author: IOhannes m zmölnig
Forwarded: https://github.com/ktossell/libuvc/pull/88
Last-Update: 2017-09-29
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- libuvc.orig/CMakeLists.txt
+++ libuvc/CMakeLists.txt
@@ -79,6 +79,8 @@
 
 if(BUILD_UVC_SHARED)
   add_library(uvc SHARED ${SOURCES})
+  set_property(TARGET uvc PROPERTY VERSION ${libuvc_VERSION} )
+  set_property(TARGET uvc PROPERTY SOVERSION ${libuvc_VERSION_MAJOR} )
   list(APPEND UVC_TARGETS uvc)
 endif()