Accepting request 918457 from home:matwey:branches:devel:libraries:c_c++

Initial version of influxdb-cxx library

OBS-URL: https://build.opensuse.org/request/show/918457
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/influxdb-cxx?expand=0&rev=1
This commit is contained in:
2021-09-23 15:56:45 +00:00
committed by Git OBS Bridge
commit 0887fcb75e
8 changed files with 229 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
From 9a2ad88a7569cb7f4fe095d907fa001218ba07ff Mon Sep 17 00:00:00 2001
From: "Matwey V. Kornilov" <matwey.kornilov@gmail.com>
Date: Fri, 10 Sep 2021 18:05:09 +0000
Subject: [PATCH] Add soversion for InfluxDB
---
src/CMakeLists.txt | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 106a33c..e393479 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -37,6 +37,22 @@ add_library(InfluxDB
)
add_library(InfluxData::InfluxDB ALIAS InfluxDB)
+#
+# Here are a set of rules to help you update your library version information:
+#
+# If the library source code has changed at all since the last update,
+# then increment revision (c:r:a becomes c:r+1:a).
+# If any interfaces have been added, removed, or changed since the last update,
+# increment current, and set revision to 0.
+# If any interfaces have been added since the last public release,
+# then increment age.
+# If any interfaces have been removed or changed since the last public release,
+# then set age to 0.
+#
+# set_target_properties(InfluxDB PROPERTIES VERSION c.r.a SOVERSION c)
+#
+set_target_properties(InfluxDB PROPERTIES VERSION 0.0.0 SOVERSION 0)
+
generate_export_header(InfluxDB)
target_include_directories(InfluxDB
--
2.31.1