From c73fd47060a01878ed976362bf5e49d5a6113baa Mon Sep 17 00:00:00 2001 From: Shane Loretz Date: Wed, 4 Aug 2021 15:15:31 -0700 Subject: [PATCH] Fix hardcoded target name Signed-off-by: Shane Loretz --- .../cmake/rosidl_generator_py_generate_interfaces.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake b/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake index 58a4598d..c0b39e87 100644 --- a/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake +++ b/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake @@ -162,7 +162,10 @@ target_include_directories(${_target_name_lib} # rosidl_get_typesupport_target(c_typesupport_target "${rosidl_generate_interfaces_TARGET}" "rosidl_typesupport_c") # TODO(sloretz) - replace line below with ros2/rosidl#606 line above -set(c_typesupport_target"${rosidl_generate_interfaces_TARGET}__rosidl_typesupport_c") # XXX +set(c_typesupport_target "${rosidl_generate_interfaces_TARGET}__rosidl_typesupport_c") # XXX +if (NOT TARGET ${c_typesupport_target}) + message(STATUS "something has gone wrong in my hardcoding") +endif() target_link_libraries(${_target_name_lib} ${c_typesupport_target}) set(_extension_compile_flags "")