summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 4 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 56910698..f218b8c2 100644
--- a/meson.build
+++ b/meson.build
@@ -38,8 +38,10 @@ if libcamera_version != meson.project_version()
},
bool_yn : true, section : 'Versions')
- libcamera_git_version = libcamera_git_version.replace(libcamera_version,
- meson.project_version())
+ # Replace the version components reported by git with the release version,
+ # but keep all trailing information supplied by git.
+ libcamera_git_version = (meson.project_version() +
+ libcamera_git_version.strip(libcamera_version))
libcamera_version = meson.project_version()
# Append a marker to show we have modified this version string