Skip to content

Commit

Permalink
Adjust CMake warnings for unsupported versions
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanscherzinger committed Oct 18, 2024
1 parent 4d99864 commit 106e3a8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cartesian_controller_base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@ elseif($ENV{ROS_DISTRO} STREQUAL "iron")
set(CARTESIAN_CONTROLLERS_IRON TRUE)
elseif($ENV{ROS_DISTRO} STREQUAL "humble")
set(CARTESIAN_CONTROLLERS_HUMBLE TRUE)
elseif($ENV{ROS_DISTRO} STREQUAL "galactic")
set(CARTESIAN_CONTROLLERS_GALACTIC TRUE)
elseif($ENV{ROS_DISTRO} STREQUAL "foxy")
set(CARTESIAN_CONTROLLERS_FOXY TRUE)
else()
message(WARNING "ROS2 version must be {jazzy|iron|humble|galactic|foxy}")
message(WARNING "ROS2 version must be {jazzy|iron|humble}")
endif()
configure_file(include/cartesian_controller_base/ROS2VersionConfig.h.in ROS2VersionConfig.h)

Expand Down

0 comments on commit 106e3a8

Please sign in to comment.