Skip to content

Commit

Permalink
Save raw arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackie Kay committed Apr 25, 2016
1 parent 7c31349 commit 18a7e1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rmw/cmake/register_rmw_implementation.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ function(register_rmw_implementation)
set(all_typesupports "")
set(language_labels "")

foreach(arg ${ARGN})
foreach(arg_raw ${ARGN})
# replace colon with semicolon to turn into a list
string(REGEX REPLACE ":" ";" arg "${arg}")
string(REGEX REPLACE ":" ";" arg "${arg_raw}")
list(LENGTH arg arg_length)
if(${arg_length} LESS 1)
message(FATAL_ERROR
"register_rmw_implementation() called with invalid input: ${ARGN}")
"register_rmw_implementation() called with invalid input: ${arg_raw}")
endif()
list(GET arg 0 language_label)
list(REMOVE_AT arg 0)
Expand Down

0 comments on commit 18a7e1d

Please sign in to comment.