Commit 166170e
build: Use FetchContent_Declare(SYSTEM)
CMake 3.25 allows setting a "SYSTEM" option on
FetchContent_Declare. Declare Catch2 using this option (if
supported). This way consumers of Catch2 targets will
consider catch2 includes as system includes and not show
warnings for them.1 parent 63c0b3a commit 166170e
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| |||
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
0 commit comments