Skip to content

Commit

Permalink
Fix ROS 2 build when ZeroMQ or SQlite3 include are not in the default…
Browse files Browse the repository at this point in the history
… include path (#911)

* Fix ROS 2 build when ZeroMQ or SQlite3 include are not in the default include path

* Update ament_build.cmake
  • Loading branch information
traversaro authored Feb 5, 2025
1 parent b4bbef6 commit 8c83f4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/ament_build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ endif()

find_package(ament_index_cpp REQUIRED)

set(BTCPP_EXTRA_INCLUDE_DIRS ${ZeroMQ_INCLUDE_DIRS}
${SQLite3_INCLUDE_DIRS})

set( BTCPP_EXTRA_LIBRARIES
$<BUILD_INTERFACE:ament_index_cpp::ament_index_cpp>
$<BUILD_INTERFACE:${ZeroMQ_LIBRARIES}>
Expand All @@ -26,6 +29,7 @@ set( BTCPP_BIN_DESTINATION bin )

mark_as_advanced(
BTCPP_EXTRA_LIBRARIES
BTCPP_EXTRA_INCLUDE_DIRS
BTCPP_LIB_DESTINATION
BTCPP_INCLUDE_DESTINATION
BTCPP_BIN_DESTINATION )
Expand Down

0 comments on commit 8c83f4d

Please sign in to comment.