Skip to content

Commit

Permalink
Update CMake warning for unsupported ROS2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanscherzinger committed Sep 21, 2023
1 parent 4862872 commit 02fc845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cartesian_controller_base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set(ADDITIONAL_COMPILE_OPTIONS -Wall -Wextra -Wpedantic -Wno-unused-parameter)
add_compile_options(${ADDITIONAL_COMPILE_OPTIONS})

# Use CMake to pass the current ROS_DISTRO via variables into a preprocessor template.
# We then include this file and switch between the API for foxy and galactic.
# We then include this file and switch between the different APIs.
if($ENV{ROS_DISTRO} STREQUAL "iron")
set(CARTESIAN_CONTROLLERS_IRON TRUE)
elseif($ENV{ROS_DISTRO} STREQUAL "humble")
Expand All @@ -17,7 +17,7 @@ elseif($ENV{ROS_DISTRO} STREQUAL "galactic")
elseif($ENV{ROS_DISTRO} STREQUAL "foxy")
set(CARTESIAN_CONTROLLERS_FOXY TRUE)
else()
message(WARNING "ROS2 version must be {foxy|galactic|humble}")
message(WARNING "ROS2 version must be {iron|humble|galactic|foxy}")
endif()
configure_file(include/cartesian_controller_base/ROS2VersionConfig.h.in ROS2VersionConfig.h)

Expand Down

0 comments on commit 02fc845

Please sign in to comment.