Skip to content
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

Move console_bridge_LIBRARIES to target_link_libraries #59

Merged
merged 2 commits into from
Jun 24, 2020

Conversation

allenh1
Copy link

@allenh1 allenh1 commented Jun 22, 2020

I got the following error when building with Foxy on Ubuntu 20.04.

--- stderr: srdfdom                                                                                               
CMake Error at /home/allenh1/ros2_ws/install/ament_cmake_target_dependencies/share/ament_cmake_target_dependencies/cmake/ament_target_dependencies.cmake:66 (message):
  ament_target_dependencies() the passed package name
  'console_bridge::console_bridge' was not found before
Call Stack (most recent call first):
  CMakeLists.txt:42 (ament_target_dependencies)

To fix this, I moved the ${console_bridge_LIBRARIES} dependency to the target_link_libraries, since it is a system library.

I got the following error when building with Foxy on Ubuntu 20.04.

```
--- stderr: srdfdom                                                                                               
CMake Error at /home/allenh1/ros2_ws/install/ament_cmake_target_dependencies/share/ament_cmake_target_dependencies/cmake/ament_target_dependencies.cmake:66 (message):
  ament_target_dependencies() the passed package name
  'console_bridge::console_bridge' was not found before
Call Stack (most recent call first):
  CMakeLists.txt:42 (ament_target_dependencies)
```

To fix this, I moved the `${console_bridge_LIBRARIES}` dependency to the `target_link_libraries`, since it is a system library.
@henningkayser
Copy link
Member

@allenh1 thanks, I just wanted to fix the same thing. Wouldn't it work to directly list console_bridge in ament_target_dependencies?

@allenh1
Copy link
Author

allenh1 commented Jun 23, 2020

@henningkayser yeah, that should also work. I can change it if that way is preferred.

@henningkayser
Copy link
Member

@henningkayser yeah, that should also work. I can change it if that way is preferred.

Yeah, I think that would be the preferred way to do it. Thanks

Signed-off-by: Hunter L. Allen <hunter.allen@ghostrobotics.io>
@allenh1
Copy link
Author

allenh1 commented Jun 24, 2020

@henningkayser should be good now, builds on my machine :)

@henningkayser
Copy link
Member

thanks @allenh1

@henningkayser henningkayser merged commit 9866009 into moveit:ros2 Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants