Skip to content

Export dependency on benchmark and osrf_testing_tools_cpp#8

Merged
cottsay merged 1 commit intomainfrom
cottsay/export_deps
Oct 21, 2020
Merged

Export dependency on benchmark and osrf_testing_tools_cpp#8
cottsay merged 1 commit intomainfrom
cottsay/export_deps

Conversation

@cottsay
Copy link
Copy Markdown
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 requested review from ahcorde and brawner October 21, 2020 17:40
@cottsay cottsay self-assigned this Oct 21, 2020
Copy link
Copy Markdown
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.

3 participants