Skip to content

Commit

Permalink
(cmake_xmllint) also use paths/exclude args
Browse files Browse the repository at this point in the history
Signed-off-by: Matthijs van der Burgh <matthijs.van.der.burgh@vbti.nl>
  • Loading branch information
MatthijsBurgh committed May 27, 2024
1 parent bc24af1 commit 65472e7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ament_cmake_xmllint/cmake/ament_xmllint.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,22 @@ function(ament_xmllint)
endforeach()
endif()

if(ARG_EXCLUDE)
list(APPEND cmd "--exclude")
foreach(ex ${ARG_EXCLUDE})
list(APPEND cmd "${ex}")
endforeach()
endif()

list(APPEND cmd ${ARG_UNPARSED_ARGUMENTS})

if(ARG_PATHS)
list(APPEND cmd "--")
foreach(path ${ARG_PATHS})
list(APPEND cmd "${path}")
endforeach()
endif()

find_program(xmllint_BIN NAMES "xmllint")

if(NOT xmllint_BIN)
Expand Down

0 comments on commit 65472e7

Please sign in to comment.