File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
rosidl_generator_java/cmake Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 1515find_package (ament_cmake_export_jars REQUIRED)
1616find_package (ament_cmake_export_jni_libraries REQUIRED)
1717find_package (rosidl_generator_c REQUIRED)
18+ find_package (rosidl_typesupport_c REQUIRED)
1819find_package (rmw_implementation_cmake REQUIRED)
1920find_package (rmw REQUIRED)
2021find_package (rcljava_common REQUIRED)
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- macro (accumulate_typesupports)
16- set (_typesupport_impl_tmp "" )
17- get_rmw_typesupport(_typesupport_impl_tmp ${rmw_implementation} LANGUAGE "C" )
18- list (APPEND _typesupport_impls_tmp ${_typesupport_impl_tmp} )
19- endmacro ()
20-
2115macro (rosidl_generator_java_get_typesupports TYPESUPPORT_IMPLS)
2216 set (${TYPESUPPORT_IMPLS} "" )
23- set (_typesupport_impls_tmp "" )
24- set (_typesupport_impls_tmp_unique "" )
25- call_for_each_rmw_implementation(accumulate_typesupports)
26-
27- foreach (_typesupport_impl ${_typesupport_impls_tmp} )
28- list_append_unique(${TYPESUPPORT_IMPLS} ${_typesupport_impl} )
17+ ament_index_get_resources(${TYPESUPPORT_IMPLS} "rosidl_typesupport_c" )
18+ list (APPEND ${TYPESUPPORT_IMPLS} "rosidl_typesupport_c" )
19+ foreach (_typesupport ${${TYPESUPPORT_IMPLS} })
20+ find_package (${_typesupport} QUIET )
21+ if (NOT ${_typesupport} _FOUND)
22+ list (REMOVE_ITEM ${TYPESUPPORT_IMPLS} "${_typesupport} " )
23+ endif ()
2924 endforeach ()
3025endmacro ()
You can’t perform that action at this time.
0 commit comments