Skip to content

Commit

Permalink
Try to fix returning a list of rmw typesupports
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackie Kay committed Apr 13, 2016
1 parent 54c5c6b commit 12b9777
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion rmw/cmake/get_rmw_typesupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ macro(get_rmw_typesupport var rmw_implementation)
message(FATAL_ERROR "get_rmw_typesupport() called with unused arguments: ${ARGN}")
endif()

ament_index_get_resource(${var} "rmw_typesupport" "${rmw_implementation}")
ament_index_get_resource(${c_typesupport} "rmw_typesupport")

This comment has been minimized.

ament_index_get_resource(${cpp_typesupport} "rmw_typesupport")
list(APPEND ${var} ${c_typesupport})
list(APPEND ${var} ${cpp_typesupport})
endmacro()

#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
# :type var: list of strings
#
function(get_available_rmw_implementations var)
ament_index_get_resources(middleware_implementations "rmw_typesupport")
ament_index_get_resources(impl_with_c_typesupport "rmw_typesupport_c")
ament_index_get_resources(impl_with_cpp_typesupport "rmw_typesupport_cpp")
# Concatenate lists
list_append_unique(middleware_implementations ${impl_with_c_typesupport})
list_append_unique(${middleware_implementations} ${impl_with_cpp_typesupport})
if(DEFINED middleware_implementations)
list(SORT middleware_implementations)
endif()
Expand Down

0 comments on commit 12b9777

Please sign in to comment.