Skip to content

[cmake] namespace test/example/demo targets #35

Merged
evaleev merged 2 commits intomainfrom
cmake/namespace-test-targets
Feb 6, 2026
Merged

[cmake] namespace test/example/demo targets #35
evaleev merged 2 commits intomainfrom
cmake/namespace-test-targets

Conversation

@evaleev
Copy link
Contributor

@evaleev evaleev commented Feb 6, 2026

to avoid polluting global namespace with overly generic names like demo

… namespace with overly generic names like "demo"
@evaleev evaleev requested a review from janbrandejs February 6, 2026 18:40
Copy link
Contributor

@janbrandejs janbrandejs left a comment

Choose a reason for hiding this comment

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

looks great, we just need to enable BUILD_TESTING by default. Without at least on thing to run for newcomers by default the reference implementation is not very accessible.
That's why I believe we had demo on by default

EDIT:
I see this is a ON by default as defined by CMAKE once one does include(CTest). So it's all ok
https://stackoverflow.com/questions/41832908/set-build-testing-to-off-by-default-using-ctest

@evaleev evaleev merged commit 18b2343 into main Feb 6, 2026
12 checks passed
@evaleev evaleev deleted the cmake/namespace-test-targets branch February 6, 2026 21:05
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