diff --git a/ament_cmake_clang_tidy/cmake/ament_cmake_clang_tidy_lint_hook.cmake b/ament_cmake_clang_tidy/cmake/ament_cmake_clang_tidy_lint_hook.cmake index 39c2bcdd..7fa8e654 100644 --- a/ament_cmake_clang_tidy/cmake/ament_cmake_clang_tidy_lint_hook.cmake +++ b/ament_cmake_clang_tidy/cmake/ament_cmake_clang_tidy_lint_hook.cmake @@ -24,5 +24,5 @@ file(GLOB_RECURSE _source_files FOLLOW_SYMLINKS ) if(_source_files) message(STATUS "Added test 'clang_tidy' to check C / C++ code style") - ament_clang_tidy() + ament_clang_tidy(${CMAKE_BINARY_DIR}) endif() diff --git a/ament_lint_common/package.xml b/ament_lint_common/package.xml index 105fd3a5..7e097df0 100644 --- a/ament_lint_common/package.xml +++ b/ament_lint_common/package.xml @@ -16,7 +16,7 @@ ament_cmake_core - + ament_cmake_clang_tidy ament_cmake_copyright ament_cmake_cppcheck ament_cmake_cpplint