Skip to content

Commit fd2feb1

Browse files
authored
[ament_cmake_cppcheck] Fix file exclusion behavior (#329)
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 <[email protected]>
1 parent a72d149 commit fd2feb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ament_cmake_cppcheck/cmake/ament_cppcheck.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# @public
3636
#
3737
function(ament_cppcheck)
38-
cmake_parse_arguments(ARG "" "EXCLUDE;LANGUAGE;TESTNAME" "LIBRARIES;INCLUDE_DIRS" ${ARGN})
38+
cmake_parse_arguments(ARG "" "LANGUAGE;TESTNAME" "EXCLUDE;LIBRARIES;INCLUDE_DIRS" ${ARGN})
3939
if(NOT ARG_TESTNAME)
4040
set(ARG_TESTNAME "cppcheck")
4141
endif()

0 commit comments

Comments
 (0)