Skip to content

Align build options and README with Beman Standard#246

Merged
steve-downey merged 4 commits into
bemanproject:mainfrom
neatudarius:cmake/skip-examples-standard-option
Jul 23, 2026
Merged

Align build options and README with Beman Standard#246
steve-downey merged 4 commits into
bemanproject:mainfrom
neatudarius:cmake/skip-examples-standard-option

Conversation

@neatudarius

@neatudarius neatudarius commented Jul 16, 2026

Copy link
Copy Markdown
Member

Related to upcoming new beman-tidy features:

Changes in this library need to be fixed before releasing new beman-tidy including these features.

@neatudarius
neatudarius marked this pull request as ready for review July 16, 2026 07:11
@neatudarius
neatudarius force-pushed the cmake/skip-examples-standard-option branch from 9db915b to 4b2b763 Compare July 16, 2026 07:12
Add Dependencies/Build Environment documentation per exemplar #417 so
libraries satisfy beman-tidy cpp.min_std_version (#362) and document
cmake.skip_tests/cmake.skip_examples options.
@neatudarius
neatudarius force-pushed the cmake/skip-examples-standard-option branch from 4b2b763 to a5cdd62 Compare July 16, 2026 07:33
@neatudarius neatudarius changed the title Align examples build option with Beman Standard cmake.skip_examples Align build options and README with Beman Standard Jul 16, 2026
Comment thread README.md
Keep the Dependencies list under How to Build per review feedback.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI review requested due to automatic review settings July 22, 2026 20:25
@neatudarius
neatudarius requested a review from steve-downey July 22, 2026 20:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Aligns this library’s CMake configuration knobs and build documentation with the Beman “standard” option naming expected by upcoming beman-tidy features, ensuring consistent CI/build behavior across the ecosystem.

Changes:

  • Renames the test-build CMake option to BEMAN_OPTIONAL_BUILD_TESTS and adds a new option BEMAN_OPTIONAL_BUILD_EXAMPLES.
  • Gates examples/ on BEMAN_OPTIONAL_BUILD_EXAMPLES.
  • Updates README build/dependency documentation to reference the new option names and adds a “Build Environment” section.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
README.md Documents build environment requirements and updates CMake option names for skipping tests/examples.
CMakeLists.txt Introduces Beman-aligned build options and conditionally includes tests/examples based on those options.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
Comment thread CMakeLists.txt
Comment on lines 14 to 24
option(
OPTIONAL_ENABLE_TESTING
"Enable building tests and test infrastructure"
BEMAN_OPTIONAL_BUILD_TESTS
"Enable building tests and test infrastructure. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }."
${PROJECT_IS_TOP_LEVEL}
)

option(
BEMAN_OPTIONAL_BUILD_EXAMPLES
"Enable building examples. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }."
${PROJECT_IS_TOP_LEVEL}
)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@steve-downey , I'm still proposing to do this change and align to the Beman Standard now. Do you agree?

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 22, 2026 20:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread CMakeLists.txt
Comment thread README.md
Copilot AI review requested due to automatic review settings July 23, 2026 06:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

CMakeLists.txt:18

  • Renaming OPTIONAL_ENABLE_TESTING to BEMAN_OPTIONAL_BUILD_TESTS is a breaking change for consumers that still pass -DOPTIONAL_ENABLE_TESTING=... (CMake will accept the cache entry but it will no longer affect the build). Consider adding a small compatibility shim that maps the old cache variable to the new option with a deprecation warning, so older build scripts/presets continue to work.
option(
    BEMAN_OPTIONAL_BUILD_TESTS
    "Enable building tests and test infrastructure. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }."
    ${PROJECT_IS_TOP_LEVEL}
)

Comment thread CMakeLists.txt
)

if(OPTIONAL_ENABLE_TESTING)
if(BEMAN_OPTIONAL_BUILD_TESTS)
@steve-downey
steve-downey merged commit e656ab0 into bemanproject:main Jul 23, 2026
79 checks passed
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