Skip to content

Commit

Permalink
fix building test when ROS 1 diagnostic_msgs is isolated from roscpp (#…
Browse files Browse the repository at this point in the history
…236)

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
  • Loading branch information
dirk-thomas committed Jan 15, 2020
1 parent 08ae942 commit 2e592eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ if(TEST_ROS1_BRIDGE)
find_package(launch_testing_ament_cmake REQUIRED)

add_executable(test_ros1_client "test/test_ros1_client.cpp")
ament_target_dependencies(test_ros1_client "ros1_roscpp")
ament_target_dependencies(test_ros1_client "ros1_diagnostic_msgs" "ros1_roscpp")
add_executable(test_ros1_server "test/test_ros1_server.cpp")
ament_target_dependencies(test_ros1_server "ros1_roscpp")
ament_target_dependencies(test_ros1_server "ros1_diagnostic_msgs" "ros1_roscpp")
set(TEST_BRIDGE_ROS1_ENV "${ros1_roslaunch_PREFIX}/env.sh")
set(TEST_BRIDGE_ROSCORE "${ros1_roslaunch_PREFIX}/bin/roscore")
set(TEST_BRIDGE_ROS1_CLIENT "$<TARGET_FILE:test_ros1_client>")
Expand Down

0 comments on commit 2e592eb

Please sign in to comment.