diff --git a/Tools/ardupilotwaf/ap_library.py b/Tools/ardupilotwaf/ap_library.py index a2a05238ee..1368d3c12f 100644 --- a/Tools/ardupilotwaf/ap_library.py +++ b/Tools/ardupilotwaf/ap_library.py @@ -62,7 +62,7 @@ _depends_on_vehicle_cache = {} def _depends_on_vehicle(bld, source_node): path = source_node.srcpath() - if path.startswith('build/'): + if path.startswith(bld.env.BUILDROOT) or path.startswith("build/"): _depends_on_vehicle_cache[path] = False if path not in _depends_on_vehicle_cache: