Skip to content

Commit 2c8b00e

Browse files
committed
build: Update .so versioning to x.y format
This replaces the current x.y.z format. Signed-off-by: Naushir Patuck <[email protected]>
1 parent 95e9d94 commit 2c8b00e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/meson.build

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,14 @@ version_cpp = vcs_tag(command : version_cmd,
4444

4545
pisp_sources += version_cpp
4646

47+
# Label the .so with x.y versioning from the project.
48+
v = meson.project_version().split('.')
49+
soversion = v[0] + '.' + v[1]
50+
4751
libpisp = library(
4852
meson.project_name(),
4953
pisp_sources,
50-
soversion : meson.project_version(),
54+
soversion : soversion,
5155
include_directories : include_directories(inc_dirs),
5256
name_prefix : '',
5357
install : true,

0 commit comments

Comments
 (0)