From 0e57180717af2cdb739fd527495e45c359298a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C5=82a=C5=BCej=20Sowa?= Date: Sun, 6 Oct 2024 18:27:53 +0000 Subject: [PATCH] Skip ament_copyright check in Humble distribution --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 90a2e8e..fb69aba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,6 +91,12 @@ install(TARGETS ${PROJECT_NAME} if(BUILD_TESTING) find_package(ament_lint_auto REQUIRED) + + # Skip ament_copyright check for humble + if($ENV{ROS_DISTRO} STREQUAL "humble") + set(ament_cmake_copyright_FOUND TRUE) + endif() + ament_lint_auto_find_test_dependencies() endif()