-
Notifications
You must be signed in to change notification settings - Fork 197
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
Fix tf2_bullet dependency export #428
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.
A few things to change, but this is definitely the right direction, thanks!
tf2_bullet/CMakeLists.txt
Outdated
@@ -46,5 +46,4 @@ if(BUILD_TESTING) | |||
endif() | |||
|
|||
ament_export_include_directories(include) | |||
ament_export_libraries(${PROJECT_NAME}) | |||
ament_package() | |||
ament_package(CONFIG_EXTRAS_POST bullet-extra.cmake) |
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.
I think we can just use CONFIG_EXTRAS
here:
ament_package(CONFIG_EXTRAS_POST bullet-extra.cmake) | |
ament_package(CONFIG_EXTRAS bullet-extra.cmake) |
Also, as convention, we almost always use "extras" as opposed to "extra", so rename this file to bullet-extras.cmake
.
tf2_bullet/bullet-extra.cmake
Outdated
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
|
||
|
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.
Nit: extra whitespace.
55356b8
to
c069f3c
Compare
Thanks! I also converted this into a cmake header only library, but I think that's currently out of scope (also because I couldn't find a tutorial on how to make header only libraries in ROS2). |
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.
Looks good to me, I'll run CI on this next.
@ahcorde This one looks good to me, but I'd appreciate a second look by you. |
tf2_bullet does not have the dependencies on the bullet library exported. The standard approach of ament does not work because of two reasons:
BULLET_ROOT
seems to be needed on windowsFindBullet
sets theINCLUDE_DIRS
andLIBRARIES
all uppercase, which is unexpected by ament.This was split out of #423.