File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -63,19 +63,19 @@ pub fn setup_bindgen_builder() -> bindgen::Builder {
63
63
}
64
64
65
65
let ament_prefix_var_name = "AMENT_PREFIX_PATH" ;
66
+ let split_char = if cfg ! ( target_os = "windows" ) {
67
+ ';'
68
+ } else {
69
+ ':'
70
+ } ;
66
71
let ament_prefix_var = {
67
72
let mut ament_str = env:: var_os ( ament_prefix_var_name) . expect ( "Source your ROS!" ) ;
68
73
if let Some ( cmake_prefix_var) = env:: var_os ( "CMAKE_PREFIX_PATH" ) {
69
- ament_str. push ( ";" ) ;
74
+ ament_str. push ( & split_char . to_string ( ) ) ;
70
75
ament_str. push ( cmake_prefix_var) ;
71
76
}
72
77
RawOsString :: new ( ament_str)
73
78
} ;
74
- let split_char = if cfg ! ( target_os = "windows" ) {
75
- ';'
76
- } else {
77
- ':'
78
- } ;
79
79
for p in ament_prefix_var. split ( split_char) {
80
80
let path = Path :: new ( & p. to_os_str ( ) ) . join ( "include" ) ;
81
81
You can’t perform that action at this time.
0 commit comments