1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08: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:
Francois Keith
2021-01-25 11:56:36 +01:00
committed by Brad King
parent e38997d85a
commit ee78391c09

View File

@@ -270,6 +270,17 @@
"value": "",
"flags": []
},
{
"name": "WarningsAsErrors",
"switch": "warnaserror:",
"comment": "",
"value": "",
"flags": [
"UserValue",
"UserRequired",
"CommaAppendable"
]
},
{
"name": "WarningLevel",
"switch": "warn:0",