diff options
author | Christian Persch <chpe@src.gnome.org> | 2021-03-25 19:26:57 +0100 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2021-03-25 19:29:29 +0100 |
commit | dad085db46f00f8679bb8abd2b3a18752f6b86f8 (patch) | |
tree | 4e59bf0c4bdabdd34a86668a23e7fa171508cefa | |
parent | 23f56581f8e999140b11793ac0a7a2461cb6ab40 (diff) | |
download | vte-dad085db46f00f8679bb8abd2b3a18752f6b86f8.tar.gz |
build: Work around a meson bug with dist scripts in subprojects
https://github.com/mesonbuild/meson/issues/8440
Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/345
(cherry picked from commit 1e674130bf231208e8f33006b78913095dd7e5a8)
-rw-r--r-- | meson.build | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meson.build b/meson.build index 8da82075..ae87edeb 100644 --- a/meson.build +++ b/meson.build @@ -466,9 +466,13 @@ endif # Dist -meson.add_dist_script( - find_program('meson_changelog.sh'), -) +# Meson bug https://github.com/mesonbuild/meson/issues/8440 breaks using vte +# as subproject; see vte#345. +if meson.version().version_compare('>= 0.58.0') or not meson.is_subproject() + meson.add_dist_script( + find_program('meson_changelog.sh'), + ) +endif # Simple compat Makefile |