Skip to content

Commit 9a9762f

Browse files
Fix rosidl dependencies (ros2#265)
* [rcl_lifecycle] remove rosidl deps as this package doesnt generate any messages * depend on rosidl_generator_c
1 parent d13a902 commit 9a9762f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

rcl_lifecycle/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ set_source_files_properties(
3737

3838
### C-Library depending only on RCL
3939
add_library(
40-
rcl_lifecycle
40+
${PROJECT_NAME}
4141
${rcl_lifecycle_sources})
4242

4343
# specific order: dependents before dependencies
4444
ament_target_dependencies(rcl_lifecycle
4545
"rcl"
4646
"lifecycle_msgs"
47+
"rosidl_generator_c"
4748
"rcutils"
4849
)
4950

rcl_lifecycle/package.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,18 @@
88
<license>Apache License 2.0</license>
99

1010
<buildtool_depend>ament_cmake_ros</buildtool_depend>
11-
<buildtool_depend>rosidl_default_generators</buildtool_depend>
1211

1312
<build_depend>lifecycle_msgs</build_depend>
1413
<build_depend>rcl</build_depend>
1514
<build_depend>rcutils</build_depend>
1615
<build_depend>rmw_implementation</build_depend>
17-
<build_depend>rosidl_default_generators</build_depend>
16+
<build_depend>rosidl_generator_c</build_depend>
1817

1918
<exec_depend>lifecycle_msgs</exec_depend>
2019
<exec_depend>rcl</exec_depend>
2120
<exec_depend>rcutils</exec_depend>
2221
<exec_depend>rmw_implementation</exec_depend>
23-
<exec_depend>rosidl_default_runtime</exec_depend>
22+
<exec_depend>rosidl_generator_c</exec_depend>
2423

2524
<test_depend>ament_cmake_gtest</test_depend>
2625
<test_depend>ament_lint_common</test_depend>

0 commit comments

Comments
 (0)