-
Notifications
You must be signed in to change notification settings - Fork 118
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
Control shared/static linking via BUILD_SHARED_LIBS and ament_cmake_ros #87
Conversation
rmw_fastrtps_cpp/package.xml
Outdated
<buildtool_depend>fastrtps_cmake_module</buildtool_depend> | ||
|
||
<buildtool_export_depend>ament_cmake</buildtool_export_depend> | ||
<buildtool_export_depend>ament_cmake_ros</buildtool_export_depend> |
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 package doesn't export ament_cmake_ros
anywhere therefore I don't think it needs to be exported here either.
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.
Sorry, I forgot about this. I've reverted that change and rebased against master. Thanks!
df8be34
to
6577f9e
Compare
Looks good to me. Normal CI builds:
CI builds with |
It looks like the |
IIRC it used to, but haven't tried recently, I only updated this PR and addressed your comment because it was getting stale. Isn't this sufficient to export https://github.com/ros2/ament_cmake_ros/blob/master/ament_cmake_ros/package.xml#L12 or you mean in the |
Yes, it needs to be exported in the CMake file in order to be part of the generated CMake config file. |
@dirk-thomas I've submitted ros2/ament_cmake_ros#1, but don't review it just yet, I'm building this locally. |
@dirk-thomas thanks for merging ros2/ament_cmake_ros#1 so quickly, but I wasn't done building this yet 😄 |
The change was trivial to review and definitely the right thing to do. The manifest already exported the information. The lack of exporting it in CMake was an obvious oversight. |
@dirk-thomas I know, it was just a tongue-in-cheek comment, buddy. |
@dirk-thomas I've submitted ros/console_bridge#42 so that |
Regarding the
|
Normal CI builds look good:
The CI builds with |
The CI build with |
@dirk-thomas thanks for triggering the build, @j-rivero 's pull request seems to have fixed the |
Waiting for the |
@dirk-thomas now that ros/console_bridge#43 is merged, is there anything pending that needs to be addressed? Thanks. |
This was still blocked by ament/gtest_vendor#4 et al which just got merged. Before running CI on this I am waiting for the comments on the other PRs in order to test them together. |
@esteve This also needs to be rebased since it fails to compile against the current master of other packages. |
6577f9e
to
5c58ead
Compare
@dirk-thomas rebased. IIRC the build farm would rebase before building if there are no conflicts, though. |
@mikaelarguedas that's unfortunate indeed, thanks for the explanation! |
I ran into the same thing testing ros2/rmw#80, an unfortunate issue with testing forks in our CI. |
5c58ead
to
05894e7
Compare
Since this is unrelated to the
|
05894e7
to
4412197
Compare
@dirk-thomas I just pushed a rebased branch. |
CI builds look good. Thanks for iterating on this. |
@dirk-thomas thanks for the patience! |
This PR delegates the decision to build a shared or a static library to CMake's BUILD_SHARED_LIBS
Update:
Connects to ros2/ros2#306