Skip to content

Conversation

@jll63
Copy link
Collaborator

@jll63 jll63 commented Dec 11, 2025

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes CMake configuration issues related to test and example build options. The changes make the default behavior more consistent and correctly nest example dependencies within the test infrastructure.

Key changes:

  • Changed BOOST_OPENMETHOD_BUILD_TESTS default from OFF to ${BOOST_OPENMETHOD_IS_ROOT} to match the examples option behavior
  • Moved example library dependency configuration inside the test conditional block
  • Reorganized examples section to be nested within the testing conditional, reflecting the actual dependency on test infrastructure

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

@cppalliance-bot
Copy link

cppalliance-bot commented Dec 11, 2025

An automated preview of the documentation is available at https://50.openmethod.prtest3.cppalliance.org/libs/openmethod/doc/html/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2025-12-14 15:20:25 UTC

@codecov
Copy link

codecov bot commented Dec 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.03%. Comparing base (dac3cf7) to head (3bb2414).
⚠️ Report is 8 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop      #50   +/-   ##
========================================
  Coverage    92.03%   92.03%           
========================================
  Files           40       40           
  Lines         2838     2838           
  Branches      1354     1354           
========================================
  Hits          2612     2612           
  Misses         187      187           
  Partials        39       39           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 764c0b9...3bb2414. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

Copilot AI left a comment

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 1 out of 1 changed files in this pull request and generated 5 comments.


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

endforeach ()
# Conditional dependencies
if (NOT BOOST_OPENMETHOD_MRDOCS_BUILD)
if (BUILD_TESTING OR BOOST_OPENMETHOD_BUILD_TESTS)
Copy link

Copilot AI Dec 13, 2025

Choose a reason for hiding this comment

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

The condition BUILD_TESTING OR BOOST_OPENMETHOD_BUILD_TESTS is redundant. Since lines 46-48 ensure that BOOST_OPENMETHOD_BUILD_TESTS is ON whenever BUILD_TESTING is ON, checking BUILD_TESTING separately is unnecessary. Consider simplifying this to just check BOOST_OPENMETHOD_BUILD_TESTS for better maintainability.

Suggested change
if (BUILD_TESTING OR BOOST_OPENMETHOD_BUILD_TESTS)
if (BOOST_OPENMETHOD_BUILD_TESTS)

Copilot uses AI. Check for mistakes.
WARNING
"BOOST_OPENMETHOD_BUILD_EXAMPLES requires BOOST_OPENMETHOD_BUILD_TESTS. Examples will not be built.")
set(BOOST_OPENMETHOD_BUILD_EXAMPLES OFF)
endif()
Copy link

Copilot AI Dec 13, 2025

Choose a reason for hiding this comment

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

Inconsistent spacing in endif statement. Line 68 uses endif() without a space, while line 213 (also newly added in this PR) uses endif () with a space. Consider standardizing on one style throughout the file for consistency.

Suggested change
endif()
endif ()

Copilot uses AI. Check for mistakes.
set(BOOST_OPENMETHOD_EXAMPLE_LIBRARIES dll)
if (BOOST_OPENMETHOD_BUILD_EXAMPLES)
set(BOOST_OPENMETHOD_EXAMPLE_LIBRARIES dll)
endif()
Copy link

Copilot AI Dec 13, 2025

Choose a reason for hiding this comment

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

Inconsistent spacing in endif statement. Line 107 uses endif() without a space, while line 213 (also newly added in this PR) uses endif () with a space. Consider standardizing on one style throughout the file for consistency.

Suggested change
endif()
endif ()

Copilot uses AI. Check for mistakes.

option(
BOOST_OPENMETHOD_BUILD_TESTS
"Build boost::openmethod tests even if BUILD_TESTING is OFF"
Copy link

Copilot AI Dec 13, 2025

Choose a reason for hiding this comment

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

The option description is now misleading. The option no longer allows building tests "even if BUILD_TESTING is OFF" because lines 46-48 force BOOST_OPENMETHOD_BUILD_TESTS to ON when BUILD_TESTING is ON. The description should be updated to accurately reflect that this option enables tests by default when the project is root, but is overridden to ON when BUILD_TESTING is ON.

Suggested change
"Build boost::openmethod tests even if BUILD_TESTING is OFF"
"Enable boost::openmethod tests by default when this is the root project; always ON if BUILD_TESTING is ON"

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jll63 jll63 closed this Dec 14, 2025
@jll63 jll63 deleted the feature/cmake branch December 14, 2025 19:08
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