@@ -246,8 +246,8 @@ if(RMW_UXRCE_GRAPH)
246
246
PROPERTY
247
247
IMPORTED_LOCATION ${micro_ros_msgs_LIBRARIES__rosidl_typesupport_microxrcedds_c} )
248
248
249
- ament_target_dependencies (${PROJECT_NAME}
250
- "micro_ros_msgs"
249
+ target_link_libraries (${PROJECT_NAME}
250
+ ${micro_ros_msgs_TARGETS}
251
251
)
252
252
endif ()
253
253
@@ -260,8 +260,8 @@ target_link_libraries(${PROJECT_NAME}
260
260
# Type support lock-up mechanism
261
261
find_package (rosidl_typesupport_microxrcedds_c)
262
262
if (rosidl_typesupport_microxrcedds_c_FOUND)
263
- ament_target_dependencies (${PROJECT_NAME}
264
- " rosidl_typesupport_microxrcedds_c"
263
+ target_link_libraries (${PROJECT_NAME}
264
+ rosidl_typesupport_microxrcedds_c::rosidl_typesupport_microxrcedds_c
265
265
)
266
266
target_compile_definitions (${PROJECT_NAME}
267
267
PUBLIC
@@ -271,19 +271,19 @@ else()
271
271
find_package (rosidl_typesupport_microxrcedds_cpp REQUIRED)
272
272
endif ()
273
273
if (rosidl_typesupport_microxrcedds_cpp_FOUND)
274
- ament_target_dependencies (${PROJECT_NAME}
275
- " rosidl_typesupport_microxrcedds_cpp"
274
+ target_link_libraries (${PROJECT_NAME}
275
+ rosidl_typesupport_microxrcedds_cpp::rosidl_typesupport_microxrcedds_cpp
276
276
)
277
277
target_compile_definitions (${PROJECT_NAME}
278
278
PUBLIC
279
279
HAVE_CPP_TYPESUPPORT
280
280
)
281
281
endif ()
282
282
283
- ament_target_dependencies (${PROJECT_NAME}
284
- " rcutils"
285
- " rmw"
286
- " microxrcedds_client"
283
+ target_link_libraries (${PROJECT_NAME}
284
+ rcutils::rcutils
285
+ rmw::rmw
286
+ microxrcedds_client::microxrcedds_client
287
287
)
288
288
289
289
configure_rmw_library(${PROJECT_NAME} )
0 commit comments