Skip to content

Conversation

@k3DW
Copy link
Collaborator

@k3DW k3DW commented Oct 5, 2025

Closes #307 , in tandem with boostorg/cmake#89

@codecov
Copy link

codecov bot commented Oct 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.23%. Comparing base (e01b7b5) to head (37bd215).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #317   +/-   ##
========================================
  Coverage    98.23%   98.23%           
========================================
  Files          161      161           
  Lines        22239    22239           
========================================
  Hits         21847    21847           
  Misses         392      392           

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 e01b7b5...37bd215. Read the comment docs.

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

…his is a no-op when the generator doesn't support it, however still gate the natvis file behind 'if(MSVC)'

if(CMAKE_VERSION VERSION_GREATER 3.18 AND CMAKE_GENERATOR MATCHES "Visual Studio")

if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
Copy link
Member

Choose a reason for hiding this comment

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

You don't need this check.

Copy link
Member

Choose a reason for hiding this comment

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

I mean, CONFIGURE_DEPENDS "works" on pre-3.12, because it's interpreted as a path, and doesn't do anything.

file(GLOB_RECURSE boost_unordered_IDEFILES include/*.hpp)
endif()
target_sources(boost_unordered PRIVATE ${boost_unordered_IDEFILES})
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.18)
Copy link
Member

Choose a reason for hiding this comment

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

This is wrong. target_sources requires 3.19, not source_group and not 3.18.

@pdimov
Copy link
Member

pdimov commented Oct 20, 2025

This is what I arrived at, after a fair bit of experimentation:

https://github.com/boostorg/assert/blob/e107bd7b556d72ef5273c17f4099198a28edaa4d/CMakeLists.txt#L20-L43

@k3DW
Copy link
Collaborator Author

k3DW commented Oct 22, 2025

I will look into this more soon, thanks

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.

Natvis not picked up on vcpkg

2 participants