Skip to content

Commit 8d61f75

Browse files
JorgeCastanhopatrickelectric
authored andcommitted
Changed rerun-if-changed to full xml path of message definitions
1 parent 033b069 commit 8d61f75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mavlink-bindgen/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn _generate(
6868

6969
bindings.push(GeneratedBinding {
7070
module_name,
71-
mavlink_xml: definition_file,
71+
mavlink_xml: entry.path(),
7272
rust_module: dest_path,
7373
});
7474
}
@@ -119,7 +119,7 @@ pub fn emit_cargo_build_messages(result: &GeneratedBindings) {
119119
// Re-run build if definition file changes
120120
println!(
121121
"cargo:rerun-if-changed={}",
122-
binding.rust_module.to_string_lossy()
122+
binding.mavlink_xml.to_string_lossy()
123123
);
124124
}
125125
}

0 commit comments

Comments
 (0)