Skip to content

Add GEO_UTILS_BUILD_TESTS and GEO_UTILS_BUILD_EXAMPLES options#8

Merged
gistrec merged 4 commits intomasterfrom
cmake-build-options
May 3, 2026
Merged

Add GEO_UTILS_BUILD_TESTS and GEO_UTILS_BUILD_EXAMPLES options#8
gistrec merged 4 commits intomasterfrom
cmake-build-options

Conversation

@gistrec
Copy link
Copy Markdown
Owner

@gistrec gistrec commented May 3, 2026

Replace the implicit CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME + BUILD_TESTING
gate with two namespaced options:

  • GEO_UTILS_BUILD_TESTS (default: ON if top-level, OFF otherwise)
  • GEO_UTILS_BUILD_EXAMPLES (default: ON if top-level, OFF otherwise)

Downstream consumers via add_subdirectory / FetchContent no longer build the
test executable or the examples by default. Package managers (vcpkg, conan,
distros) get a clear, project-scoped switch instead of having to override the
generic BUILD_TESTING.

Update examples/CMakeLists.txt, ci.yml, coverage.yml, CHANGELOG.md, and
docs/getting-started.md to use the new option names.

@gistrec gistrec requested a review from MrHerrn May 3, 2026 00:00
@codecov-commenter
Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

Comment thread CMakeLists.txt Outdated
Comment thread CMakeLists.txt Outdated
Comment thread CMakeLists.txt Outdated
Comment thread CMakeLists.txt
Comment thread CMakeLists.txt Outdated
@gistrec gistrec merged commit 2209670 into master May 3, 2026
8 checks passed
@gistrec gistrec self-assigned this May 5, 2026
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.

3 participants