Skip to content

Commit

Permalink
[cmake] Workaround rosbag2_storage_mcap package issues (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricCousineau-TRI authored Nov 13, 2023
1 parent 0495f68 commit ce913f7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ elseif("@PACKAGE@" STREQUAL "console_bridge_vendor")
# packages?
find_package(console_bridge REQUIRED)
target_link_libraries(${PROJECT_NAME} console_bridge::console_bridge)
elseif("@PACKAGE@" STREQUAL "rosbag2_storage_mcap")
# Workaround https://github.com/RobotLocomotion/drake-ros/issues/315
find_package(mcap_vendor REQUIRED)
set_target_properties(rosbag2_storage_mcap::rosbag2_storage_mcap PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ""
)
else()
ament_target_dependencies(${PROJECT_NAME} @PACKAGE@)
# TODO(hidmic): figure out why this is sometimes necessary
Expand Down

0 comments on commit ce913f7

Please sign in to comment.