Skip to content

Commit 8c83f4d

Browse files
authored
Fix ROS 2 build when ZeroMQ or SQlite3 include are not in the default include path (#911)
* Fix ROS 2 build when ZeroMQ or SQlite3 include are not in the default include path * Update ament_build.cmake
1 parent b4bbef6 commit 8c83f4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: cmake/ament_build.cmake

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ endif()
1212

1313
find_package(ament_index_cpp REQUIRED)
1414

15+
set(BTCPP_EXTRA_INCLUDE_DIRS ${ZeroMQ_INCLUDE_DIRS}
16+
${SQLite3_INCLUDE_DIRS})
17+
1518
set( BTCPP_EXTRA_LIBRARIES
1619
$<BUILD_INTERFACE:ament_index_cpp::ament_index_cpp>
1720
$<BUILD_INTERFACE:${ZeroMQ_LIBRARIES}>
@@ -26,6 +29,7 @@ set( BTCPP_BIN_DESTINATION bin )
2629

2730
mark_as_advanced(
2831
BTCPP_EXTRA_LIBRARIES
32+
BTCPP_EXTRA_INCLUDE_DIRS
2933
BTCPP_LIB_DESTINATION
3034
BTCPP_INCLUDE_DESTINATION
3135
BTCPP_BIN_DESTINATION )

0 commit comments

Comments
 (0)