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

Suppress additional targets added by CTest #102

Closed
wants to merge 1 commit into from
Closed

Suppress additional targets added by CTest #102

wants to merge 1 commit into from

Conversation

RCC-CCN
Copy link

@RCC-CCN RCC-CCN commented Dec 15, 2023

CTest inclusion by default adds a bunch of targets.
Adding before the inclusion set_property(GLOBAL PROPERTY CTEST_TARGETS_ADDED 1) suppresses them.

@friendlyanon
Copy link
Owner

That's an undocumented and reserved property, but even if it wasn't, this can be decided on a case-by-case basis. For anyone looking to do that, it might just be better to replace the include with option + enable_testing.

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