single-':' cargo syntax for compability with rust versions < 1.77
This commit is contained in:
parent
b1134a6ef0
commit
74ad4410c7
|
|
@ -157,13 +157,13 @@ pub fn print_cargo_used_cfgs(_message_cfgs: &[&str]) {}
|
|||
pub fn print_cargo_used_cfgs(message_cfgs: &[&str]) {
|
||||
// Declare all supported ros distros as cfg directives for cargo
|
||||
for d in SUPPORTED_ROS_DISTROS {
|
||||
println!("cargo::rustc-check-cfg=cfg(r2r__ros__distro__{d})");
|
||||
println!("cargo:rustc-check-cfg=cfg(r2r__ros__distro__{d})");
|
||||
}
|
||||
|
||||
// additionally we have conditional tests and features based on some
|
||||
// optional ros message packages.
|
||||
for c in message_cfgs {
|
||||
println!("cargo::rustc-check-cfg=cfg({c})");
|
||||
println!("cargo:rustc-check-cfg=cfg({c})");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue