mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-04 13:48:35 -06:00
CSharp: Add 'warnaserror:...' to v142 flag table for VS
This allows listing the warnings that must be flagged as errors.
For example:
target_compile_options(proj PRIVATE "/warnaserror:1998,4014")
This commit is contained in:
committed by
Brad King
parent
e38997d85a
commit
ee78391c09
@@ -270,6 +270,17 @@
|
||||
"value": "",
|
||||
"flags": []
|
||||
},
|
||||
{
|
||||
"name": "WarningsAsErrors",
|
||||
"switch": "warnaserror:",
|
||||
"comment": "",
|
||||
"value": "",
|
||||
"flags": [
|
||||
"UserValue",
|
||||
"UserRequired",
|
||||
"CommaAppendable"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "WarningLevel",
|
||||
"switch": "warn:0",
|
||||
|
||||
Reference in New Issue
Block a user