From 954cd5d22acf6e0d7db03d4d15eb7b1e961d8973 Mon Sep 17 00:00:00 2001 From: Sai Kishor Kothakota Date: Wed, 20 Mar 2024 15:39:13 +0100 Subject: [PATCH] Use ${PROJECT_NAME} instead of hardcoded naming Co-authored-by: Felix Exner (fexner) --- controller_interface/CMakeLists.txt | 2 +- controller_manager/CMakeLists.txt | 2 +- hardware_interface/CMakeLists.txt | 2 +- joint_limits/CMakeLists.txt | 2 +- transmission_interface/CMakeLists.txt | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/controller_interface/CMakeLists.txt b/controller_interface/CMakeLists.txt index 60400f44ab..e861e902a5 100644 --- a/controller_interface/CMakeLists.txt +++ b/controller_interface/CMakeLists.txt @@ -90,4 +90,4 @@ install(TARGETS controller_interface ament_export_targets(export_controller_interface HAS_LIBRARY_TARGET) ament_export_dependencies(${THIS_PACKAGE_INCLUDE_DEPENDS}) ament_package() -ament_generate_version_header(controller_interface) +ament_generate_version_header(${PROJECT_NAME}) diff --git a/controller_manager/CMakeLists.txt b/controller_manager/CMakeLists.txt index 9cb4e0e4c9..e02c876412 100644 --- a/controller_manager/CMakeLists.txt +++ b/controller_manager/CMakeLists.txt @@ -226,4 +226,4 @@ ament_python_install_package(controller_manager ament_export_targets(export_controller_manager HAS_LIBRARY_TARGET) ament_export_dependencies(${THIS_PACKAGE_INCLUDE_DEPENDS}) ament_package() -ament_generate_version_header(controller_manager) +ament_generate_version_header(${PROJECT_NAME}) diff --git a/hardware_interface/CMakeLists.txt b/hardware_interface/CMakeLists.txt index 16470a82a8..f6a4890cba 100644 --- a/hardware_interface/CMakeLists.txt +++ b/hardware_interface/CMakeLists.txt @@ -122,4 +122,4 @@ install( ament_export_targets(export_hardware_interface HAS_LIBRARY_TARGET) ament_export_dependencies(${THIS_PACKAGE_INCLUDE_DEPENDS}) ament_package() -ament_generate_version_header(hardware_interface) +ament_generate_version_header(${PROJECT_NAME}) diff --git a/joint_limits/CMakeLists.txt b/joint_limits/CMakeLists.txt index 077e33e682..1139a5248e 100644 --- a/joint_limits/CMakeLists.txt +++ b/joint_limits/CMakeLists.txt @@ -61,4 +61,4 @@ install(TARGETS joint_limits ament_export_targets(export_joint_limits HAS_LIBRARY_TARGET) ament_export_dependencies(${THIS_PACKAGE_INCLUDE_DEPENDS}) ament_package() -ament_generate_version_header(joint_limits) +ament_generate_version_header(${PROJECT_NAME}) diff --git a/transmission_interface/CMakeLists.txt b/transmission_interface/CMakeLists.txt index 8ddf9fdf06..60d2075956 100644 --- a/transmission_interface/CMakeLists.txt +++ b/transmission_interface/CMakeLists.txt @@ -84,4 +84,4 @@ install(TARGETS transmission_interface ament_export_targets(export_transmission_interface HAS_LIBRARY_TARGET) ament_export_dependencies(${THIS_PACKAGE_INCLUDE_DEPENDS}) ament_package() -ament_generate_version_header(transmission_interface) +ament_generate_version_header(${PROJECT_NAME})