-
Notifications
You must be signed in to change notification settings - Fork 188
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 visibility macros #539
Conversation
Fixes build for me locally, but shouldn't lines such as
be removed? This is lines 39-41 of example 1's CMakeLists but every example has similar lines |
Ah, thanks for the review. I missed that |
c637dab
to
af0120a
Compare
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.
Seems fine as per my knowledge.
Thank you!
@traversaro do you know if we need target_compile_definitions or similar for windows builds? |
If you do not have any visibility macro, it is ok not to add any
as this will define the macro even if the target |
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.
Changes seems ok to me, thanks! As raised in the PR review, you can also remove the target_compile_definitions(${PROJECT_NAME} PRIVATE "ROS2_CONTROL_DEMO_EXAMPLE_7_BUILDING_DLL")
code, but if there are no visibility headers that code is basically ignored.
Thanks a lot for the review, I'll remove that dead code then ;) |
* Remove visibility macros * Remove dead target_compile_definitions (cherry picked from commit f92cc21)
* Remove visibility macros * Remove dead target_compile_definitions (cherry picked from commit f92cc21)
* Remove visibility macros * Remove dead target_compile_definitions (cherry picked from commit f92cc21) Co-authored-by: Christoph Fröhlich <[email protected]>
* Remove visibility macros * Remove dead target_compile_definitions (cherry picked from commit f92cc21) Co-authored-by: Christoph Fröhlich <[email protected]>
As a consequence of ros-controls/ros2_control#1627 there is an include for HARWARE_INTERFACE_PUBLIC missing, causing the build of example_7 to fail.
As we've discussed and decided in ros-controls/ros2_controllers#1053, we wanted to remove all the visibility macros and use
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
instead. I took the chance to do so here.Fixes #538 and also resolves #73