Skip to content

Commit 807d69f

Browse files
committed
Use variable for SO major version
1 parent 18f797d commit 807d69f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ add_library(InfluxData::InfluxDB ALIAS InfluxDB)
6161
#
6262
# set_target_properties(InfluxDB PROPERTIES VERSION c.r.a SOVERSION c)
6363
#
64-
set_target_properties(InfluxDB PROPERTIES VERSION 0.0.0 SOVERSION 0)
64+
set(SO_VERSION_MAJOR 0)
65+
set_target_properties(InfluxDB PROPERTIES
66+
VERSION ${SO_VERSION_MAJOR}.0.0
67+
SOVERSION ${SO_VERSION_MAJOR}
68+
)
6569

6670
generate_export_header(InfluxDB)
6771

0 commit comments

Comments
 (0)