CMakeLists: Enforce standard compliance on MSVC

Adds a few compiler options that force the compiler to be standards
compliant.
This commit is contained in:
Lioncache
2025-12-16 23:25:47 -05:00
parent 481ad30094
commit b0efb9c45e

View File

@@ -32,6 +32,15 @@ if(MSVC)
/wd4100 # 'identifier' : unreferenced formal parameter
/wd4101 # 'identifier': unreferenced local variable
/wd4189 # 'identifier' : local variable is initialized but not referenced
# Compiler conformance settings
/permissive-
/volatile:iso
/Zc:enumTypes
/Zc:inline
/Zc:preprocessor
/Zc:templateScope
/Zc:throwingNew
)
# TODO: EXT Deprecation warnings can be removed when nod gets updated.