Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

avoid adding non-existing link directory#10

Closed
dirk-thomas wants to merge 1 commit intoros2from
fix_linker_warning
Closed

avoid adding non-existing link directory#10
dirk-thomas wants to merge 1 commit intoros2from
fix_linker_warning

Conversation

@dirk-thomas
Copy link
Copy Markdown
Member

When tests are not enabled the add_test calls don't generate anything. Therefore the directory ${PROJECT_BINARY_DIR}/test doesn't exist.

Before: https://ci.ros2.org/view/colcon/job/colcon_ci_packaging_osx/6/consoleFull#console-section-164
After: https://ci.ros2.org/view/colcon/job/colcon_ci_packaging_osx/7/consoleFull#console-section-162

This patch only addresses the library warning. It doesn't address the fact that the package performs test specific steps (building gtest, removing test results, etc.) when testing is explicitly disabled.

@dirk-thomas dirk-thomas added bug Something isn't working in review Waiting for review (Kanban column) labels Apr 17, 2018
@dirk-thomas dirk-thomas self-assigned this Apr 17, 2018
@mikaelarguedas
Copy link
Copy Markdown
Member

This patch only addresses the library warning. It doesn't address the fact that the package performs test specific steps (building gtest, removing test results, etc.) when testing is explicitly disabled.

Is there a reason for not putting all the test stuff in that if(BUILD_TESTING) as well ?

@dirk-thomas
Copy link
Copy Markdown
Member Author

Is there a reason for not putting all the test stuff in that if(BUILD_TESTING) as well ?

The patch simply addresses the warning I notices. I just don't have more time to spend on it.

@dirk-thomas dirk-thomas added in progress Actively being worked on (Kanban column) and removed in review Waiting for review (Kanban column) labels Apr 19, 2018
@dirk-thomas
Copy link
Copy Markdown
Member Author

dirk-thomas commented Apr 19, 2018

Skipping the test directory all together: https://ci.ros2.org/view/colcon/job/colcon_ci_packaging_osx/9/consoleFull#console-section-175

Filed upstream: ros#111

* skip test directory when building tests is not requested

* include CTest
@mikaelarguedas
Copy link
Copy Markdown
Member

upstream patch has been merged.
CI is happy (false positive on the cmake warning)

Does including CTest again has any side effect ?

@dirk-thomas
Copy link
Copy Markdown
Member Author

I have updated this PR to contain the commit merged upstream.

Does including CTest again has any side effect ?

I would assume no but I have certainly not tested that any further.

@dirk-thomas dirk-thomas added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Apr 19, 2018
@dirk-thomas
Copy link
Copy Markdown
Member Author

Unfortunately this doesn't fix the linker warning anymore: https://ci.ros2.org/view/colcon/job/colcon_ci_packaging_osx/11/consoleFull#console-section-172

@dirk-thomas dirk-thomas added in progress Actively being worked on (Kanban column) and removed in review Waiting for review (Kanban column) labels Apr 19, 2018
@dirk-thomas
Copy link
Copy Markdown
Member Author

@scpeters the modified patch doesn't fix the linker warning anymore. Can you maybe look into this and propose a different fix?

@dirk-thomas dirk-thomas removed their assignment Apr 19, 2018
@dirk-thomas dirk-thomas self-assigned this Apr 28, 2018
@dirk-thomas dirk-thomas added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Apr 28, 2018
@mikaelarguedas
Copy link
Copy Markdown
Member

@dirk-thomas what is the status on this ? We should cherry-pick ros#112 and be good to go ?

@dirk-thomas dirk-thomas closed this May 1, 2018
@dirk-thomas dirk-thomas deleted the fix_linker_warning branch May 1, 2018 17:57
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label May 1, 2018
@dirk-thomas
Copy link
Copy Markdown
Member Author

See #11.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants