-
Notifications
You must be signed in to change notification settings - Fork 77
Mark natvis file as PUBLIC in CMakeLists.txt #317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ 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.
🚀 New features to boost your workflow:
|
…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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
|
This is what I arrived at, after a fair bit of experimentation: |
|
I will look into this more soon, thanks |
Closes #307 , in tandem with boostorg/cmake#89