From 09cebfe2f8da749f21c7ef5e85df18dc5f7bbeb0 Mon Sep 17 00:00:00 2001 From: Sai Kishor Kothakota Date: Tue, 12 Mar 2024 20:51:23 +0100 Subject: [PATCH] add missing compiler definitions of RCLCPP_VERSION_MAJOR (#1440) --- controller_interface/CMakeLists.txt | 1 + controller_manager/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/controller_interface/CMakeLists.txt b/controller_interface/CMakeLists.txt index 917da0a8c9..da47eeb82f 100644 --- a/controller_interface/CMakeLists.txt +++ b/controller_interface/CMakeLists.txt @@ -15,6 +15,7 @@ find_package(ament_cmake REQUIRED) foreach(Dependency IN ITEMS ${THIS_PACKAGE_INCLUDE_DEPENDS}) find_package(${Dependency} REQUIRED) endforeach() +add_compile_definitions(RCLCPP_VERSION_MAJOR=${rclcpp_lifecycle_VERSION_MAJOR}) add_library(controller_interface SHARED src/controller_interface_base.cpp diff --git a/controller_manager/CMakeLists.txt b/controller_manager/CMakeLists.txt index 1d6c76b5d5..e8f1358147 100644 --- a/controller_manager/CMakeLists.txt +++ b/controller_manager/CMakeLists.txt @@ -25,6 +25,7 @@ find_package(backward_ros REQUIRED) foreach(Dependency IN ITEMS ${THIS_PACKAGE_INCLUDE_DEPENDS}) find_package(${Dependency} REQUIRED) endforeach() +add_compile_definitions(RCLCPP_VERSION_MAJOR=${rclcpp_VERSION_MAJOR}) add_library(controller_manager SHARED src/controller_manager.cpp