File: 0001-Compile-shared-lib-and-install-it.patch

package info (click to toggle)
cctz 2.4%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 756 kB
  • sloc: cpp: 8,193; makefile: 62; ansic: 17; sh: 16
file content (33 lines) | stat: -rw-r--r-- 916 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
24
25
26
27
28
29
30
31
32
33
From: Anton Gladky <gladk@debian.org>
Date: Wed, 15 Nov 2017 19:04:21 +0100
Subject: [PATCH 1/2] Compile shared lib and install it

---
 CMakeLists.txt | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

Index: cctz-2.4/CMakeLists.txt
===================================================================
--- cctz-2.4.orig/CMakeLists.txt
+++ cctz-2.4/CMakeLists.txt
@@ -75,7 +75,7 @@ set(CCTZ_HDRS
   include/cctz/zone_info_source.h
   include/cctz/civil_time.h
   )
-add_library(cctz
+add_library(cctz SHARED
   src/civil_time_detail.cc
   src/time_zone_fixed.cc
   src/time_zone_fixed.h
@@ -107,6 +107,11 @@ if(APPLE)
   target_link_libraries(cctz PUBLIC ${CoreFoundation})
 endif()
 add_library(cctz::cctz ALIAS cctz)
+set_target_properties(cctz PROPERTIES
+    OUTPUT_NAME "cctz"
+    VERSION ${VERSION}
+    SOVERSION ${SOVERSION}
+)
 
 if (BUILD_TOOLS)
   add_executable(time_tool src/time_tool.cc)