Commit ca3797c
Mark include directories as SYSTEM for consuming targets
When a project enables -Wreserved-identifier (as recommended by clang
for production codebases), including stdexec headers generates >8000
warnings due to the __double_underscore naming convention used
internally. These warnings are expected within stdexec itself but
should not propagate to consumers.
Adding SYSTEM to target_include_directories causes CMake to pass
-isystem instead of -I for stdexec's include paths, suppressing
warnings that originate from stdexec headers in consuming projects.
This matches the convention used by other header-heavy libraries
(Boost, fmt, spdlog) that use reserved identifiers internally.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5473e9d commit ca3797c
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
204 | 211 | | |
205 | 212 | | |
206 | 213 | | |
| |||
0 commit comments