File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
rosidl_generator_py/cmake Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -206,8 +206,8 @@ if(APPLE OR WIN32 OR NOT _numpy_h)
206
206
target_include_directories (${_target_name_lib} PUBLIC "${_output} " )
207
207
endif ()
208
208
209
- rosidl_target_interfaces ( ${_target_name_lib}
210
- ${rosidl_generate_interfaces_TARGET} rosidl_typesupport_c )
209
+ rosidl_get_typesupport_target ( c_typesupport_target " ${rosidl_generate_interfaces_TARGET} " "rosidl_typesupport_c" )
210
+ target_link_libraries ( ${_target_name_lib} ${c_typesupport_target} )
211
211
212
212
foreach (_typesupport_impl ${_typesupport_impls} )
213
213
find_package (${_typesupport_impl} REQUIRED )
@@ -254,8 +254,7 @@ foreach(_typesupport_impl ${_typesupport_impls})
254
254
${PythonExtra_INCLUDE_DIRS}
255
255
)
256
256
257
- rosidl_target_interfaces (${_target_name}
258
- ${rosidl_generate_interfaces_TARGET} rosidl_typesupport_c )
257
+ target_link_libraries (${_target_name} ${c_typesupport_target} )
259
258
260
259
ament_target_dependencies (${_target_name}
261
260
"rosidl_runtime_c"
You can’t perform that action at this time.
0 commit comments