diff options
author | Louis Taylor <louis@kragniz.eu> | 2019-01-21 22:45:36 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-01-22 14:39:38 +0100 |
commit | d1084aa2f803cdce6b3809dc9b7ec899251fd5dc (patch) | |
tree | ba74d5797b087e0f346c565a4ba1f2420ec7152d /meson.build | |
parent | Merge pull request #11501 from yuwata/fix-9426 (diff) | |
download | systemd-d1084aa2f803cdce6b3809dc9b7ec899251fd5dc.tar.xz systemd-d1084aa2f803cdce6b3809dc9b7ec899251fd5dc.zip |
meson: make version a dependency and use it in libbasic
This should hopefully ensure it gets generated before basic build
happens.
Fixes #11483.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 011e449806..5cf2fc2664 100644 --- a/meson.build +++ b/meson.build @@ -580,6 +580,13 @@ vcs_tagger = [meson.source_root() + '/tools/meson-vcs-tag.sh', get_option('version-tag'), meson.project_version()] +version_h = vcs_tag( + input : 'src/version/version.h.in', + output : 'version.h', + command: vcs_tagger) + +versiondep = declare_dependency(sources: version_h) + sed = find_program('sed') awk = find_program('awk') m4 = find_program('m4') |