-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake export a target that is using rosidl_target_interfaces. #545
Comments
The function rosidl/rosidl_cmake/cmake/rosidl_get_typesupport_target.cmake Lines 27 to 40 in e76ed13
A solution might look like this: rosidl_generate_interfaces(${PROJECT_NAME}_msg_srv "msg/MyMessage.msg")
...
add_library(mylib SHARED my_cpp_file.cpp)
...
target_link_libraries(mylib PUBLIC "${PROJECT_NAME}_msg_srv__rosidl_typesupport_cpp") I'll close this since ROS Eloquent is EOL and the problematic function is already deprecated in future ROS releases |
Thank you very much for the answer! |
Bug report
Required Info:
Steps to reproduce issue
CMakeLists.txt
Expected behavior
Successfull build.
Actual behavior
Additional information
I do think the problem comes from here: https://github.com/ros2/rosidl/blob/eloquent/rosidl_cmake/cmake/rosidl_target_interfaces.cmake#L52
This:
should become this:
Or maybe I am not using these tools properly...
The text was updated successfully, but these errors were encountered: