Skip to content

Commit 25d8bdb

Browse files
authored
Fix ROS 2 build when ZeroMQ or SQlite3 include are not in the default include path
1 parent 48f6c5b commit 25d8bdb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/ament_build.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ if(BTCPP_SQLITE_LOGGING)
1010
find_package(SQLite3 REQUIRED)
1111
endif()
1212

13-
find_package(ament_index_cpp REQUIRED)
13+
find_package(ament_index_cpp REQUIRED
14+
15+
set(BTCPP_EXTRA_INCLUDE_DIRS ${ZeroMQ_INCLUDE_DIRS}
16+
${SQLite3_INCLUDE_DIRS})
1417

1518
set( BTCPP_EXTRA_LIBRARIES
1619
$<BUILD_INTERFACE:ament_index_cpp::ament_index_cpp>
@@ -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)