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

Export dependency on benchmark and osrf_testing_tools_cpp #8

Merged
merged 1 commit into from
Oct 21, 2020

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Oct 21, 2020

This should ensure that those targets are imported and available to link against when the macros are invoked.

We've been getting away with this when invoking add_performance_test from the root scope of a project, because these packages are find_package()'d as part of the -extras.cmake processing of performance_test_fixture and ament_cmake_google_benchmark. However, when we invoke add_performance_test from another scope, we need to ensure that they are explicitly available.

I can't explain why explicitly find_package()-ing these targets from the other scopes didn't work around the problem, but this seems to resolve the issue.

This should ensure that those targets are imported and available to link
against when the macros are invoked.

Signed-off-by: Scott K Logan <logans@cottsay.net>
@cottsay cottsay added the bug Something isn't working label Oct 21, 2020
@cottsay cottsay self-assigned this Oct 21, 2020
Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants