Skip to content

Commit da226ac

Browse files
committed
reshuffle depends
1 parent a2e014c commit da226ac

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

test_communication/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ find_package(ament_cmake REQUIRED)
1414
find_package(ament_cmake_auto REQUIRED)
1515
ament_auto_find_build_dependencies()
1616

17-
# get the rmw implementations ahead of time
18-
find_package(rmw_implementation_cmake REQUIRED)
19-
get_available_rmw_implementations(rmw_implementations2)
20-
foreach(rmw_implementation ${rmw_implementations2})
21-
find_package("${rmw_implementation}" REQUIRED)
22-
endforeach()
23-
2417
set(message_files
2518
"msg/BoundedArrayNested.msg"
2619
"msg/BoundedArrayPrimitives.msg"
@@ -52,6 +45,13 @@ if(BUILD_TESTING)
5245
find_package(ament_lint_auto REQUIRED)
5346
ament_lint_auto_find_test_dependencies()
5447

48+
# get the rmw implementations ahead of time
49+
find_package(rmw_implementation_cmake REQUIRED)
50+
get_available_rmw_implementations(rmw_implementations2)
51+
foreach(rmw_implementation ${rmw_implementations2})
52+
find_package("${rmw_implementation}" REQUIRED)
53+
endforeach()
54+
5555
function(custom_test target with_message_argument)
5656
if(with_message_argument)
5757
# adding test for each message type

test_communication/package.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313

1414
<build_depend>ament_cmake_auto</build_depend>
1515
<build_depend>builtin_interfaces</build_depend>
16-
<build_depend>rmw_implementation</build_depend>
17-
<build_depend>rmw_implementation_cmake</build_depend>
1816
<build_depend>rosidl_default_generators</build_depend>
1917

2018
<buildtool_depend>ament_cmake</buildtool_depend>
2119

20+
<exec_depend>rosidl_default_runtime</exec_depend>
21+
2222
<test_depend>ament_cmake_nose</test_depend>
2323
<test_depend>ament_cmake_gtest</test_depend>
2424
<test_depend>ament_lint_auto</test_depend>
@@ -27,8 +27,8 @@
2727
<test_depend>rclcpp</test_depend>
2828
<test_depend>rclpy</test_depend>
2929
<test_depend>rcl</test_depend>
30-
31-
<exec_depend>rosidl_default_runtime</exec_depend>
30+
<test_depend>rmw_implementation</test_depend>
31+
<test_depend>rmw_implementation_cmake</test_depend>
3232

3333
<export>
3434
<build_type>ament_cmake</build_type>

0 commit comments

Comments
 (0)