File: soverion.patch

package info (click to toggle)
vdt 0.4.4-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 620 kB
  • sloc: cpp: 2,382; ansic: 1,589; python: 1,126; csh: 16; makefile: 8
file content (29 lines) | stat: -rw-r--r-- 836 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description: add SOVERSION to lib
Author: Stephan Lachnit <stephanlachnit@debian.org>
Forwarded: https://github.com/dpiparo/vdt/pull/16

--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -18,6 +18,12 @@
 # The library
 ADD_LIBRARY(vdt ${SRC_DIR}/vdtMath_signatures.cc ${INC_DIR}/vdtMath.h )
 
+# Add SOVERSION to lib
+set_target_properties(vdt
+  PROPERTIES
+    VERSION ${PROJECT_VERSION}
+    SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
+
 # Installation of the lib
 INSTALL(TARGETS vdt  
         DESTINATION ${CMAKE_INSTALL_LIBDIR})
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,6 @@
 # VDT Math Library
 cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
-project (Vdt)
+project (Vdt VERSION 0.4.4)
 
 #-------------------------------------------------------------------------------
 # Include the defaults