diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2019-05-18 22:40:39 -0400 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2019-05-29 13:14:24 +0100 |
commit | b4a6c1abcc71a66c5b3432787ff4131d082e95ef (patch) | |
tree | 6902d627b133da6ed80e5bc9d3e9364457d8b9cc /meson.build | |
parent | 5ee2af0fe5d45062a13638491319a73146fd1041 (diff) |
meson: correct some things
We can get source_root from meson, and doing [3]
can give you an out of bounds error in certain cases.
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 8b8ae8bb..e58c436c 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,7 @@ # project definition # project('spice', 'c', - version : run_command('build-aux/git-version-gen', '${MESON_SOURCE_ROOT}/.tarball-version', check : true).stdout().strip(), + version : run_command('build-aux/git-version-gen', meson.source_root() + '/.tarball-version', check : true).stdout().strip(), license : 'LGPLv2.1', meson_version : '>= 0.48') |