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

Fix CMake trying to pick up test folders outside of the Rerun project/zip #4770

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

KevinGliewe
Copy link
Contributor

@KevinGliewe KevinGliewe commented Jan 10, 2024

What

This PR changes the CMakeLists.txt of rerun_cpp to test for the full path of the tests directory to avoid false positives.

Closes #4769

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG

@Wumpf Wumpf added 🪳 bug Something isn't working 🌊 C++ API C/C++ API specific include in changelog labels Jan 10, 2024
@Wumpf Wumpf changed the title Use full path to include 'tests' directory (#4769) Fix CMake trying to pick up test folders outside of the Rerun project/zip Jan 10, 2024
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

Thanks again for the report and prompt fix!

C++ ci for non-rerun-team prs not working yet, so I did a quick spin local to confirm that this still picks up our test folder when running in the repo. (works as expected)

@Wumpf Wumpf merged commit cb9a754 into rerun-io:main Jan 10, 2024
7 of 10 checks passed
@Wumpf Wumpf added this to the 0.12.1 milestone Jan 16, 2024
emilk pushed a commit that referenced this pull request Jan 17, 2024
…/zip (#4770)

### What

This PR changes the `CMakeLists.txt` of `rerun_cpp` to test for the full
path of the `tests` directory to avoid false positives.

Closes #4769 

### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
* [x] I've included a screenshot or gif (if applicable)
* [x] I have tested the web demo (if applicable):
* Using newly built examples:
[app.rerun.io](https://app.rerun.io/pr/4770/index.html)
* Using examples from latest `main` build:
[app.rerun.io](https://app.rerun.io/pr/4770/index.html?manifest_url=https://app.rerun.io/version/main/examples_manifest.json)
* Using full set of examples from `nightly` build:
[app.rerun.io](https://app.rerun.io/pr/4770/index.html?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json)
* [x] The PR title and labels are set such as to maximize their
usefulness for the next release's CHANGELOG

- [PR Build Summary](https://build.rerun.io/pr/4770)
- [Docs
preview](https://rerun.io/preview/ebe1d4ba438ffd72329b1b50052bc797917208db/docs)
<!--DOCS-PREVIEW-->
- [Examples
preview](https://rerun.io/preview/ebe1d4ba438ffd72329b1b50052bc797917208db/examples)
<!--EXAMPLES-PREVIEW-->
- [Recent benchmark results](https://build.rerun.io/graphs/crates.html)
- [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 🌊 C++ API C/C++ API specific include in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CMake 'EXISTS' only produces defined behaver for full paths
2 participants