-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ament_cmake_cppcheck] Fix file exclusion behavior #329
[ament_cmake_cppcheck] Fix file exclusion behavior #329
Conversation
The `EXCLUDE` argument of the `ament_cppcheck` CMake function is a list, i.e. a multi-value keyword. As such, it needs to be placed out of the one-value keywords from the `cmake_parse_arguments` function call. Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good with green CI.
The test failure in Windows CI is unrelated and also seen in the Windows nightly: https://ci.ros2.org/view/nightly/job/nightly_win_rel/2099/testReport/ |
I think the linter failures were addressed in ros2/rmw_implementation#200, so I'll just re-run CI: |
Thanks, @aprotyas! |
@audrow could you make a new release after merging this please? That would unblock ros2/geometry2#469. Thank you! |
Sure, I'll try to do it today. |
Here's the release for rolling: ros/rosdistro#31443. |
Thanks! |
The `EXCLUDE` argument of the `ament_cppcheck` CMake function is a list, i.e. a multi-value keyword. As such, it needs to be placed out of the one-value keywords from the `cmake_parse_arguments` function call. Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu> (cherry picked from commit fd2feb1) Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
The `EXCLUDE` argument of the `ament_cppcheck` CMake function is a list, i.e. a multi-value keyword. As such, it needs to be placed out of the one-value keywords from the `cmake_parse_arguments` function call. Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu> (cherry picked from commit fd2feb1) Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
The
EXCLUDE
argument of theament_cppcheck
CMake function isa list, i.e. a multi-value keyword. As such, it needs to be placed
out of the one-value keywords from the
cmake_parse_arguments
function call.
Without this change, the following invocation:
ament_cppcheck(EXCLUDE foo bar baz)
produces the following CLI command:
and not the desired CLI command:
Signed-off-by: Abrar Rahman Protyasha aprotyas@u.rochester.edu