Conversation
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. |
|
Skipping the Filed upstream: ros#111 |
* skip test directory when building tests is not requested * include CTest
246390f to
b28d700
Compare
|
upstream patch has been merged. Does including CTest again has any side effect ? |
|
I have updated this PR to contain the commit merged upstream.
I would assume no but I have certainly not tested that any further. |
|
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 |
|
@scpeters the modified patch doesn't fix the linker warning anymore. Can you maybe look into this and propose a different fix? |
|
@dirk-thomas what is the status on this ? We should cherry-pick ros#112 and be good to go ? |
|
See #11. |
When tests are not enabled the
add_testcalls don't generate anything. Therefore the directory${PROJECT_BINARY_DIR}/testdoesn'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.