File: Set-versioning-properties.patch

package info (click to toggle)
docopt.cpp 0.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 232 kB
  • ctags: 196
  • sloc: cpp: 1,493; python: 57; sh: 20; makefile: 13
file content (23 lines) | stat: -rw-r--r-- 659 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
From: Ghislain Antony Vaillant <ghisvail@gmail.com>
Date: Thu, 8 Dec 2016 10:50:08 +0000
Subject: Set versioning properties

---
 CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ee01e7c..eaa85e5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -75,6 +75,10 @@ if(NOT MSVC)
 	set_target_properties(docopt_s PROPERTIES OUTPUT_NAME docopt)
 endif()
 
+set_target_properties(docopt PROPERTIES
+        VERSION ${docopt.cpp_VERSION}
+        SOVERSION 0)
+
 if(USE_BOOST_REGEX)
 	add_definitions("-DDOCTOPT_USE_BOOST_REGEX")
 	# This is needed on Linux, where linking a static library into docopt.so