From aff7fc89c35ce9cdc76657dec2d7e3c0027f8791 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 15 Mar 2020 22:25:09 +0200 Subject: [PATCH] Generators can depend on custom targets as well as build targets. --- mesonbuild/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 61894fe8a..60bcf8121 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1369,7 +1369,7 @@ class Generator: if 'depends' in kwargs: depends = unholder(listify(kwargs['depends'])) for d in depends: - if not isinstance(d, BuildTarget): + if not (isinstance(d, (BuildTarget, CustomTarget))): raise InvalidArguments('Depends entries must be build targets.') self.depends.append(d)