-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introducing option NB_SUPPRESS_WARNINGS to nanobind_add_module (#868)
* Make public include directories SYSTEM-includes With this change compile commands generated by cmake for targets consuming nanobind use `-isystem` instead of `-I` for defining nanobind's header locations, which makes modern analysis tools (e.g. clang analyzer) ignore them. * Header dirs as SYSTEM shall not be default but an opt-in Using option `NB_SUPPRESS_WARNINGS` on function `add_nanobind_module` to enable this behaviour. * change NB_SUPPRESS_WARNINGS documentation as suggested
- Loading branch information
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters