There was an error while loading. Please reload this page.
1 parent f32ea6d commit c443e1eCopy full SHA for c443e1e
1 file changed
rosidl_runtime_rs/build.rs
@@ -1,7 +1,6 @@
1
cfg_if::cfg_if! {
2
if #[cfg(not(feature="use_ros_shim"))] {
3
use std::env;
4
- use std::path::Path;
5
6
const AMENT_PREFIX_PATH: &str = "AMENT_PREFIX_PATH";
7
@@ -22,8 +21,8 @@ fn main() {
22
21
#[cfg(not(feature = "use_ros_shim"))]
23
{
24
let ament_prefix_path_list = get_env_var_or_abort(AMENT_PREFIX_PATH);
25
- for ament_prefix_path in ament_prefix_path_list.split(':') {
26
- let library_path = Path::new(ament_prefix_path).join("lib");
+ for ament_prefix_path in env::split_paths(&ament_prefix_path_list) {
+ let library_path = ament_prefix_path.join("lib");
27
println!("cargo:rustc-link-search=native={}", library_path.display());
28
}
29
0 commit comments