Skip to content

Comments

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

Merged
Wumpf merged 1 commit intorerun-io:mainfrom
KevinGliewe:main
Jan 10, 2024
Merged

Fix CMake trying to pick up test folders outside of the Rerun project/zip#4770
Wumpf merged 1 commit intorerun-io:mainfrom
KevinGliewe:main

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 sdk-cpp 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
@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 include in changelog sdk-cpp C/C++ API specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CMake 'EXISTS' only produces defined behaver for full paths

2 participants