Skip to content

Commit 567d48e

Browse files
committed
build: Support release candidate version strings
The library_version is constructed from the project_version() which might be a release candidate version. Let's strip away the release candidate for the library versioning. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 90bd643 commit 567d48e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ project(
1818
]
1919
)
2020

21-
library_version = meson.project_version() + '.0'
21+
maj_min = meson.project_version().split('-rc')[0]
22+
library_version = maj_min + '.0'
2223

2324
################################################################################
2425
cc = meson.get_compiler('c')

0 commit comments

Comments
 (0)