From b0efb9c45e0c88a6589fc98cfc7e78d331713255 Mon Sep 17 00:00:00 2001 From: Lioncache Date: Tue, 16 Dec 2025 23:25:47 -0500 Subject: [PATCH] CMakeLists: Enforce standard compliance on MSVC Adds a few compiler options that force the compiler to be standards compliant. --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 297b7a5c..55dd4c42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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.