Commit 0922a01
committed
Mark the
`pybind11/eval.h` calls `_Py_fopen_obj`, which Python 3.14 deprecates.
The plain `include_directories()` applied the core warning flags to
that header, so `-Werror` turned it into a build failure. `pybind11`
marks its own headers `SYSTEM` only when consumed through
`add_subdirectory()`, leaving a `find_package()` consumer such as this
one to do it itself.
`SYSTEM` silences the third-party header while keeping `-Werror` on our
own deprecated uses, which `-Wno-error=deprecated-declarations` would
have demoted to a warning. `numpy` a few lines below already gets the
same treatment for the same reason.pybind11 include directory SYSTEM
1 parent 778186e commit 0922a01
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
282 | 284 | | |
283 | 285 | | |
284 | 286 | | |
| |||
0 commit comments