-
Notifications
You must be signed in to change notification settings - Fork 310
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
Remove boilerplate visibility macros #1972
base: master
Are you sure you want to change the base?
Remove boilerplate visibility macros #1972
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't these parts in the CMakeLists.txt now outdated as well?
# Causes the visibility macros to use dllexport rather than dllimport,
# which is appropriate when building the dll but not consuming it.
target_compile_definitions(controller_interface PRIVATE "CONTROLLER_INTERFACE_BUILDING_DLL")
Excellent point! On to removing more stuff!! |
I've also removed the cmake macro for controller interface which may break controllers... but I'll put up a PR for that too |
macro(controller_interface_configure_controller_library library_target) | ||
if(WIN32) | ||
# Causes the visibility macros to use dllexport rather than dllimport | ||
# which is appropriate when building the dll but not consuming it. | ||
target_compile_definitions(${library_target} | ||
PRIVATE "CONTROLLER_INTERFACE_BUILDING_DLL") | ||
endif() | ||
endmacro() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOL. I didn't know that this macro exist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes itself look good to me, but this might be API breaking as we are removing the headers.
For ros2_controllers it is not a problem as no one derives from them, but for ros2_control it might be.
What do you guys think? @ros-controls/ros2-maintainers ?
That's why we have the downstream CI jobs. I think we can work with the UR driver maintainers ;) |
Ok, we will check with the UR drivers. I'm just worried about user's code that is not released but in their local workspace. If this is not a problem at all, then perfect 😜 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we first deprecate this for one release cycle?
ros-controls/ros2_controllers#1053