[gtkmm: 1/3] Detect if we build from a git subtree




commit c9fbafe095a61612051c6bb700ef45f75fc33b03
Author: William Roy <wroy proton me>
Date:   Fri Sep 23 13:11:17 2022 +0000

    Detect if we build from a git subtree

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 67d4b783..a8cdf866 100644
--- a/meson.build
+++ b/meson.build
@@ -60,7 +60,7 @@ endif
 cmd_py = '''
 import os
 import sys
-sys.exit(os.path.isdir("@0@") or os.path.isfile("@0@"))
+sys.exit(os.path.isdir("@0@") or os.path.isfile("@0@") or os.path.dirname("@0@"))
 '''.format(project_source_root / '.git')
 is_git_build = run_command(python3, '-c', cmd_py, check: false).returncode() != 0
 


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