Skip to content

Commit

Permalink
Update version string handling
Browse files Browse the repository at this point in the history
  • Loading branch information
reedacartwright committed Jun 6, 2024
1 parent 018620f commit 0250d0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ version_src = configure_file(input : 'version.h.in.in',
'version_patch' : semver[2],
'version_int' : (semver[0].to_int()*1000+ semver[1].to_int())*10000+ \
semver[2].to_int(),
'version_vcs' : '@VCS_TAG@'

'version_str' : '@VCS_TAG@'
})

version_file = vcs_tag(input : version_src, output : 'version.h')
Expand Down
2 changes: 1 addition & 1 deletion src/version.h.in.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef COATI_VERSION_H_FILE
#define COATI_VERSION_H_FILE

#define COATI_VERSION_STRING "@version_vcs@"
#define COATI_VERSION_STRING "@version_str@"
#define COATI_VERSION_INTEGER @version_int@
#define COATI_VERSION_MAJOR @version_major@
#define COATI_VERSION_MINOR @version_minor@
Expand Down

0 comments on commit 0250d0c

Please sign in to comment.