Fix setting of version number in meson.build

This commit is contained in:
Your Name 2020-02-22 08:57:10 +01:00
commit d8b0c2d2bd

View file

@ -100,6 +100,7 @@ else
have_xwayland = false
endif
version = '@0@'.format(meson.project_version())
git = find_program('git', native: true, required: false)
if git.found()
git_commit = run_command([git, 'rev-parse', '--short', 'HEAD'])
@ -111,8 +112,6 @@ if git.found()
git_branch.stdout().strip(),
)
endif
else
version = '@0@'.format(meson.project_version())
endif
conf_data = configuration_data()