-
Notifications
You must be signed in to change notification settings - Fork 733
Fix testing CMake issue to resolve Rolling regression #961
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -38,7 +38,7 @@ set(TEST_DEPENDECIES | |||||
foonathan::lexy | ||||||
bt_sample_nodes) | ||||||
|
||||||
if(ament_cmake_FOUND AND BUILD_TESTING) | ||||||
if(ament_cmake_FOUND) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the original check is correct
Suggested change
The problem here is that gtest was being found and linked transitively via There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mean aren't both of those things true already? See line 43 below for your first point and here: https://github.com/BehaviorTree/BehaviorTree.CPP/blob/4.6.2/package.xml#L27 for the second point There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also, as I noted in my comments on the issue, it seems that this case of the if statement isn't even being hit on the build farm There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this is the right change. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the issue with the way that the CMake is currently structured is that even with My first attempt at fixing it 'respected' I'll take a look at your comment in #960 and respond there as well |
||||||
|
||||||
find_package(ament_cmake_gtest REQUIRED) | ||||||
|
||||||
|
Uh oh!
There was an error while loading. Please reload this page.