Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rosidl_generator_py assuming incorect library names (#149)
rosidl_generator_py was assuming all interface packages being depended upon call their interface generation target name "${PROJECT_NAME}", but that's an incorrect assumption. The target name is a required argument to rosidl_generate_interfaces. This fixes it by exporting the python library target using an existing CMake macro for that purpose called rosidl_export_typesupport_targets() and amen_export_targets() I works by adding a variable "${PROJECT_NAME}_TARGETS__rosidl_generator_py" which is set when the interface package is `find_package()`d. That variable contains the targets generated by `rosidl_generator_py` so that downstream interface packages can depend on it. Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
- Loading branch information