Skip to content

Commit

Permalink
ROS 2 Rolling has switched to noble
Browse files Browse the repository at this point in the history
  • Loading branch information
skpawar1305 committed Mar 13, 2024
1 parent 43dabae commit b0d1387
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion webots_ros2_driver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ find_package(webots_ros2_msgs REQUIRED)
find_package(tinyxml2_vendor REQUIRED)
find_package(TinyXML2 REQUIRED)
find_package(yaml-cpp REQUIRED)
find_package(Python 3.10 EXACT REQUIRED COMPONENTS Development)

# Check which ROS distribution is used, vision_msgs depends of that
if($ENV{ROS_DISTRO} MATCHES "humble")
find_package(Python 3.10 EXACT REQUIRED COMPONENTS Development)
elseif($ENV{ROS_DISTRO} MATCHES "iron")
find_package(Python 3.10 EXACT REQUIRED COMPONENTS Development)
elseif($ENV{ROS_DISTRO} MATCHES "rolling")
find_package(Python 3.12 EXACT REQUIRED COMPONENTS Development)
endif()

add_custom_target(compile-lib-controller ALL
COMMAND ${CMAKE_COMMAND} -E env "WEBOTS_HOME=${CMAKE_CURRENT_SOURCE_DIR}/webots" make release -f Makefile > /dev/null 2>&1
Expand Down

0 comments on commit b0d1387

Please sign in to comment.