Skip to content

Commit 3b1a5a4

Browse files
committed
build: add soname to shared libraries
Use API level as soname.
1 parent 47c52cb commit 3b1a5a4

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

CMakeLists.txt

+18-1
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,13 @@ set (Seastar_DPDK_MACHINE
4343
STRING
4444
"Configure DPDK for this processor architecture (if `Seastar_DPDK` is enabled). It configures -march or -mcpu")
4545

46+
# Release version
47+
set (Seastar_VERSION "22.11.0")
48+
4649
project (Seastar
47-
VERSION 1.0
50+
VERSION ${Seastar_VERSION}
51+
DESCRIPTION "Event driven asynchronous programming framework"
52+
HOMEPAGE_URL "http://seastar.io/"
4853
LANGUAGES CXX)
4954

5055
set (Seastar_ALLOC_FAILURE_INJECTION
@@ -780,6 +785,11 @@ add_library (seastar
780785
src/websocket/server.cc
781786
)
782787

788+
# Shared library soname
789+
set_target_properties(seastar PROPERTIES
790+
VERSION ${Seastar_API_LEVEL}
791+
SOVERSION ${Seastar_API_LEVEL})
792+
783793
# We disable _FORTIFY_SOURCE because it generates false positives with longjmp() (src/core/thread.cc)
784794
set_source_files_properties(src/core/thread.cc
785795
PROPERTIES COMPILE_FLAGS -U_FORTIFY_SOURCE)
@@ -1174,6 +1184,10 @@ if (Seastar_INSTALL OR Seastar_TESTING)
11741184
src/testing/seastar_test.cc
11751185
src/testing/test_runner.cc)
11761186

1187+
set_target_properties(seastar_testing PROPERTIES
1188+
VERSION ${Seastar_API_LEVEL}
1189+
SOVERSION ${Seastar_API_LEVEL})
1190+
11771191
add_library (Seastar::seastar_testing ALIAS seastar_testing)
11781192

11791193
target_compile_definitions (seastar_testing
@@ -1193,6 +1207,9 @@ if (Seastar_INSTALL OR Seastar_TESTING)
11931207
include/seastar/testing/perf_tests.hh
11941208
tests/perf/perf_tests.cc
11951209
tests/perf/linux_perf_event.cc)
1210+
set_target_properties(seastar_perf_testing PROPERTIES
1211+
VERSION ${Seastar_API_LEVEL}
1212+
SOVERSION ${Seastar_API_LEVEL})
11961213
add_library (Seastar::seastar_perf_testing ALIAS seastar_perf_testing)
11971214
target_compile_definitions (seastar_perf_testing
11981215
PRIVATE ${Seastar_PRIVATE_COMPILE_DEFINITIONS})

0 commit comments

Comments
 (0)