changed project name to patricus utils and made the git hash full instead of short
This commit is contained in:
parent
bf27804a4d
commit
6741cf3115
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
project('myproject', 'c', version: '3.4')
|
project('patricus utils', 'c', version: '3.4')
|
||||||
|
|
||||||
# Get the short git commit hash
|
# Get the short git commit hash
|
||||||
git_hash = run_command('git', 'rev-parse', '--short', 'HEAD', check: true).stdout().strip()
|
git_hash = run_command('git', 'rev-parse', 'HEAD', check: true).stdout().strip()
|
||||||
|
|
||||||
# Combine version and hash
|
# Combine version and hash
|
||||||
full_version = '@0@(@1@)'.format(meson.project_version(), git_hash)
|
full_version = '@0@(@1@)'.format(meson.project_version(), git_hash)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue