add version from git

This commit is contained in:
chatlanin 2024-07-18 10:44:27 +03:00
parent cc5f97a9df
commit ae73a2991a

View File

@ -1,7 +1,7 @@
project(
meson.current_source_dir().split('/').get(-1),
'cpp',
version : '1.2.1',
version : run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip(),
default_options : [
'warning_level=1',
'optimization=3',