[vte] build: Work around a meson bug with dist scripts in subprojects
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] build: Work around a meson bug with dist scripts in subprojects
- Date: Thu, 25 Mar 2021 18:27:08 +0000 (UTC)
commit 1e674130bf231208e8f33006b78913095dd7e5a8
Author: Christian Persch <chpe src gnome org>
Date: Thu Mar 25 19:26:57 2021 +0100
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
meson.build | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 2de7652d..4f5a7c57 100644
--- a/meson.build
+++ b/meson.build
@@ -525,9 +525,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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]