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

Prevent Catch2 v2 tests from running if loaded as a sub-project #2204

Merged
merged 1 commit into from
Apr 9, 2021

Conversation

claremacrae
Copy link
Contributor

Description

What: Prevent Catch2 v2's tests from being run, and CTest targets from being added, if Catch2 is configured as a sub-project.

Why: In projects that use Catch2 via add_subdirectory or FetchContent, this prevents the IDE's lists of targets fro being cluttered up with all CTest's targets - and it also makes CLion's "Run all CTest targets" a lot more useful, as it then only runs the user's tests, and not Catc2 ones as well.

GitHub Issues

See #2202 - there will be a separate fix for the devel branch.

@claremacrae
Copy link
Contributor Author

The CI failures are due to GitHub Actions dropping older clang and gc versions - nothing to do with this PR:
See actions/runner-images#2950

@horenmar horenmar merged commit 1ff1f27 into catchorg:v2.x Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants