Commit 1b60fae
authored
feat: option for strict flag usage (#1430)
When compiling yaml-cpp as a root project flags like -Wall -pedantic or
-pedantic-error are being set. Some compilers report false positives
and/or are not aware of certain flags.
While having a strict compile policy is nice but hinders people who are
using rare compiler or compiler configurations or sometimes just new
compiler.
The current workaround is to edit the CMakeLists.txt file and edit out
those flags.
This patch provides a new CMake option "YAML_CPP_USE_STRICT_FLAGS".
The default value is set to ON if its the
root project, otherwise OFF. This allows a user to call `cmake
-DYAML_CPP_USE_STRICT_FLAGS=OFF .." to deactivate any strict flag
settings.
log: feat: option for strict flag usage1 parent f407cc9 commit 1b60fae
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | | - | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
0 commit comments