mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 16:57:46 +08:00
Making nav2_msgs optional (not available yet on jazzy). Fixed compilation errors on jazzy with vision_opencv related h->hpp headers.
This commit is contained in:
@@ -46,6 +46,10 @@ if("$ENV{ROS_DISTRO}" STRLESS "humble")
|
||||
add_definitions(-DPRE_ROS_HUMBLE)
|
||||
endif()
|
||||
|
||||
IF("$ENV{ROS_DISTRO}" STRLESS "iron")
|
||||
add_definitions(-DPRE_ROS_IRON)
|
||||
ENDIF()
|
||||
|
||||
###########
|
||||
## Build ##
|
||||
###########
|
||||
@@ -58,6 +62,10 @@ target_include_directories(rtabmap_conversions
|
||||
)
|
||||
ament_target_dependencies(rtabmap_conversions ${Libraries})
|
||||
|
||||
IF("$ENV{ROS_DISTRO}" STRLESS "iron")
|
||||
target_compile_definitions(rtabmap_conversions PUBLIC -DPRE_ROS_IRON)
|
||||
ENDIF()
|
||||
|
||||
#############
|
||||
## Install ##
|
||||
#############
|
||||
|
||||
Reference in New Issue
Block a user