Skip to content

Commit 65e8e28

Browse files
committed
Add in cppcheck manually.
Signed-off-by: Chris Lalancette <clalancette@gmail.com>
1 parent 17d2711 commit 65e8e28

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rclcpp_lifecycle/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,11 @@ if(BUILD_TESTING)
6060
find_package(ament_lint_auto REQUIRED)
6161
# Give cppcheck hints about macro definitions coming from outside this package
6262
set(ament_cmake_cppcheck_ADDITIONAL_INCLUDE_DIRS ${rclcpp_INCLUDE_DIRS})
63+
list(APPEND AMENT_LINT_AUTO_EXCLUDE "ament_cmake_cppcheck")
6364
ament_lint_auto_find_test_dependencies()
6465

6566
find_package(ament_cmake_cppcheck REQUIRED)
66-
# cppcheck is being added elsewhere
67+
ament_cppcheck()
6768
set_tests_properties(cppcheck PROPERTIES TIMEOUT 360)
6869

6970
find_package(performance_test_fixture REQUIRED)

0 commit comments

Comments
 (0)