Skip to content

Commit

Permalink
fix CMake warning about using uninitialized variables (#425)
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
  • Loading branch information
dirk-thomas authored Apr 17, 2020
1 parent 81e2304 commit 94a1274
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions test_communication/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ if(BUILD_TESTING)
RCL_ASSERT_RMW_ID_MATCHES=${rmw_implementation}
RMW_IMPLEMENTATION=${rmw_implementation})
if(TARGET ${target}${target_suffix})
target_link_libraries(${target}${target_suffix}
${_AMENT_EXPORT_ABSOLUTE_LIBRARIES}
${_AMENT_EXPORT_LIBRARY_TARGETS})
add_dependencies(${target}${target_suffix} ${PROJECT_NAME})
rosidl_target_interfaces(${target}${target_suffix}
${PROJECT_NAME} "rosidl_typesupport_c")
Expand Down Expand Up @@ -486,10 +483,6 @@ if(BUILD_TESTING)
${SKIP_TEST}
)
if(TARGET ${serialize_target_name})
target_link_libraries(${serialize_target_name}
${_AMENT_EXPORT_ABSOLUTE_LIBRARIES}
${_AMENT_EXPORT_LIBRARY_TARGETS}
)
add_dependencies(${serialize_target_name} ${PROJECT_NAME})
ament_target_dependencies(${serialize_target_name}
"rmw"
Expand Down Expand Up @@ -521,10 +514,6 @@ if(BUILD_TESTING)
${SKIP_TEST}
)
if(TARGET ${target_name})
target_link_libraries(${target_name}
${_AMENT_EXPORT_ABSOLUTE_LIBRARIES}
${_AMENT_EXPORT_LIBRARY_TARGETS}
)
add_dependencies(${target_name} ${PROJECT_NAME})
ament_target_dependencies(${target_name}
"rclcpp"
Expand Down

0 comments on commit 94a1274

Please sign in to comment.