[libhandy/wip/exalm/subproject] meson: Don't add dist script for subprojects




commit 23b77df67c6e221dad1196034d191ca5ca37548a
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sat Apr 23 01:39:54 2022 +0400

    meson: Don't add dist script for subprojects
    
    Not sure why meson can't figure this out itself, but whatever.
    
    Fixes https://gitlab.gnome.org/GNOME/libhandy/-/issues/463

 meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 0cef4617..32b0ced4 100644
--- a/meson.build
+++ b/meson.build
@@ -141,7 +141,9 @@ configure_file(
          output: 'run',
   configuration: run_data)
 
-meson.add_dist_script('build-aux'/ 'meson'/ 'dist-data.py')
+if not meson.is_subproject()
+    meson.add_dist_script('build-aux'/ 'meson'/ 'dist-data.py')
+endif
 
 summary = [
   '',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]