From 0281217f92b9239811ee4a78b7f04672824edf2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Gonz=C3=A1lez=20Santamarta?= Date: Tue, 5 Nov 2024 14:12:41 +0100 Subject: [PATCH] ROS 2 fixed in CMakeLists --- yasmin_demos/CMakeLists.txt | 12 ++++++------ yasmin_ros/CMakeLists.txt | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/yasmin_demos/CMakeLists.txt b/yasmin_demos/CMakeLists.txt index 9f71682..3a678b1 100644 --- a/yasmin_demos/CMakeLists.txt +++ b/yasmin_demos/CMakeLists.txt @@ -14,22 +14,22 @@ if(NOT DEFINED ENV{ROS_DISTRO}) message(FATAL_ERROR "ROS_DISTRO is not defined." ) endif() if("$ENV{ROS_DISTRO}" STREQUAL "foxy") - message(STATUS "Build for ROS2 Foxy") + message(STATUS "Build for ROS 2 Foxy") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DFOXY") elseif("$ENV{ROS_DISTRO}" STREQUAL "galactic") - message(STATUS "Build for ROS2 Galactic") + message(STATUS "Build for ROS 2 Galactic") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGALACTIC") elseif("$ENV{ROS_DISTRO}" STREQUAL "humble") - message(STATUS "Build for ROS2 Humble") + message(STATUS "Build for ROS 2 Humble") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHUMBLE") elseif("$ENV{ROS_DISTRO}" STREQUAL "iron") - message(STATUS "Build for ROS2 Iron") + message(STATUS "Build for ROS 2 Iron") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIRON") elseif("$ENV{ROS_DISTRO}" STREQUAL "jazzy") - message(STATUS "Build for ROS2 Jazzy") + message(STATUS "Build for ROS 2 Jazzy") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DJAZZY") elseif("$ENV{ROS_DISTRO}" STREQUAL "rolling") - message(STATUS "Build for ROS2 Rolling") + message(STATUS "Build for ROS 2 Rolling") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DROLLING") else() message(FATAL_ERROR "Unsupported ROS Distribution: " "$ENV{ROS_DISTRO}") diff --git a/yasmin_ros/CMakeLists.txt b/yasmin_ros/CMakeLists.txt index 333ab99..772a926 100644 --- a/yasmin_ros/CMakeLists.txt +++ b/yasmin_ros/CMakeLists.txt @@ -15,22 +15,22 @@ if(NOT DEFINED ENV{ROS_DISTRO}) message(FATAL_ERROR "ROS_DISTRO is not defined." ) endif() if("$ENV{ROS_DISTRO}" STREQUAL "foxy") - message(STATUS "Build for ROS2 Foxy") + message(STATUS "Build for ROS 2 Foxy") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DFOXY") elseif("$ENV{ROS_DISTRO}" STREQUAL "galactic") - message(STATUS "Build for ROS2 Galactic") + message(STATUS "Build for ROS 2 Galactic") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGALACTIC") elseif("$ENV{ROS_DISTRO}" STREQUAL "humble") - message(STATUS "Build for ROS2 Humble") + message(STATUS "Build for ROS 2 Humble") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHUMBLE") elseif("$ENV{ROS_DISTRO}" STREQUAL "iron") - message(STATUS "Build for ROS2 Iron") + message(STATUS "Build for ROS 2 Iron") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIRON") elseif("$ENV{ROS_DISTRO}" STREQUAL "jazzy") - message(STATUS "Build for ROS2 Jazzy") + message(STATUS "Build for ROS 2 Jazzy") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DJAZZY") elseif("$ENV{ROS_DISTRO}" STREQUAL "rolling") - message(STATUS "Build for ROS2 Rolling") + message(STATUS "Build for ROS 2 Rolling") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DROLLING") else() message(FATAL_ERROR "Unsupported ROS Distribution: " "$ENV{ROS_DISTRO}")