Skip to content

Commit

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

Signed-off-by: Dirk Thomas <[email protected]>
Signed-off-by: Allison Thackston <[email protected]>
  • Loading branch information
dirk-thomas authored and athackst committed Feb 14, 2020
1 parent 9bea860 commit b5fb432
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 b5fb432

Please sign in to comment.