-
Notifications
You must be signed in to change notification settings - Fork 808
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 Eigen Plugins compilation when linking to grid_map_core #475
base: rolling
Are you sure you want to change the base?
Conversation
Signed-off-by: Ryan Friedman <[email protected]>
Signed-off-by: Ryan Friedman <[email protected]>
Signed-off-by: Ryan Friedman <[email protected]>
@@ -5,8 +5,7 @@ project(grid_map_core) | |||
find_package(ament_cmake REQUIRED) | |||
find_package(grid_map_cmake_helpers REQUIRED) | |||
|
|||
## Define Eigen addons. | |||
include(cmake/${PROJECT_NAME}-extras.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.
This needs to be moved down till after the library is created. You can't call target_compile_definitions
on a target until the target exists.
) | ||
ament_package() | ||
#ament_package(CONFIG_EXTRAS | ||
# cmake/${PROJECT_NAME}-extras.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.
This breaks if we leave it in - any tips on how to test the plugins are working in another package?
Just adding my $0.02 that this PR does fix the Eigen linker issues when using grid_map_core for me, thank you! I can't speak to its potential impact on other plugins, though. |
Thanks for sharing! |
Purpose
Here's a proposed patch for #382. Because the original PR for adding the plugins through CMake and ament is not well documented, I really don't know how this will affect others. Please try this PR out. It will stay open for a while until I get a reasonable number of approvals it doesn't break anything.
Test instructions
colcon build --packages-up-to issue382
And try building your own packages that link to grid_map_core.