CMakeLists: Enable stricter C++ conformance mode in MSVC
This commit is contained in:
parent
38eb7e0314
commit
8f15e3f70c
1 changed files with 3 additions and 0 deletions
|
@ -44,10 +44,13 @@ if (MSVC)
|
||||||
/w34459 # Declaration of 'var' hides global definition
|
/w34459 # Declaration of 'var' hides global definition
|
||||||
/w34946 # Reinterpret-cast between related types
|
/w34946 # Reinterpret-cast between related types
|
||||||
/wd4592 # Symbol will be dynamically initialized (implementation limitation)
|
/wd4592 # Symbol will be dynamically initialized (implementation limitation)
|
||||||
|
/permissive- # Stricter C++ standards conformance
|
||||||
/MP
|
/MP
|
||||||
/Zi
|
/Zi
|
||||||
/Zo
|
/Zo
|
||||||
/EHsc
|
/EHsc
|
||||||
|
/Zc:throwingNew # Assumes new never returns null
|
||||||
|
/Zc:inline # Omits inline functions from object-file output
|
||||||
/DNOMINMAX)
|
/DNOMINMAX)
|
||||||
|
|
||||||
if (DYNARMIC_WARNINGS_AS_ERRORS)
|
if (DYNARMIC_WARNINGS_AS_ERRORS)
|
||||||
|
|
Loading…
Add table
Reference in a new issue