Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Commit

Permalink
Fix bug where test_subscriber_topic_statistics was referenced out of …
Browse files Browse the repository at this point in the history
…scope causing colcon build with flag -DBUILD_TESTING=0 to fail. (#175)

Signed-off-by: Jaison Titus <jaisontj@amazon.com>
  • Loading branch information
jaisontj committed Sep 1, 2020
1 parent eb3bcaf commit 1c8b25c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system_metrics_collector/CMakeLists.txt
Expand Up @@ -147,10 +147,11 @@ if(BUILD_TESTING)
test/topic_statistics_collector/test_subscriber_topic_statistics.cpp)
target_link_libraries(test_subscriber_topic_statistics ${PROJECT_NAME})
ament_target_dependencies(test_subscriber_topic_statistics rcl rclcpp)

rosidl_target_interfaces(test_subscriber_topic_statistics system_metrics_collector_test_msgs "rosidl_typesupport_cpp")
endif()

# To enable use of dummy_message.hpp in executables
rosidl_target_interfaces(test_subscriber_topic_statistics system_metrics_collector_test_msgs "rosidl_typesupport_cpp")
rosidl_target_interfaces(dummy_talker system_metrics_collector_test_msgs "rosidl_typesupport_cpp")
rosidl_target_interfaces(topic_statistics_node system_metrics_collector_test_msgs "rosidl_typesupport_cpp")

Expand Down

0 comments on commit 1c8b25c

Please sign in to comment.