Skip to content

Commit

Permalink
parse LANGUAGE argument case insensitive (#255)
Browse files Browse the repository at this point in the history
Signed-off-by: Karsten Knese <[email protected]>
  • Loading branch information
Karsten1987 authored Jun 18, 2020
1 parent 404c8fa commit 099ce77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ament_cmake_cppcheck/cmake/ament_cppcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function(ament_cppcheck)
list(APPEND cmd "--include_dirs" "${ARG_INCLUDE_DIRS}")
endif()
if(ARG_LANGUAGE)
string(TOLOWER ${ARG_LANGUAGE} ARG_LANGUAGE)
list(APPEND cmd "--language" "${ARG_LANGUAGE}")
endif()

Expand Down
1 change: 1 addition & 0 deletions ament_cmake_uncrustify/cmake/ament_uncrustify.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function(ament_uncrustify)
list(APPEND cmd "-c" "${ARG_CONFIG_FILE}")
endif()
if(ARG_LANGUAGE)
string(TOUPPER ${ARG_LANGUAGE} ARG_LANGUAGE)
list(APPEND cmd "--language" "${ARG_LANGUAGE}")
endif()
list(APPEND cmd ${ARG_UNPARSED_ARGUMENTS})
Expand Down

0 comments on commit 099ce77

Please sign in to comment.