From 8f15e3f70cb96e56705e5de6ba97b5d09423a56b Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Sun, 11 Jun 2017 17:18:20 -0700 Subject: [PATCH] CMakeLists: Enable stricter C++ conformance mode in MSVC --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 62ba5429..a255a27a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,10 +44,13 @@ if (MSVC) /w34459 # Declaration of 'var' hides global definition /w34946 # Reinterpret-cast between related types /wd4592 # Symbol will be dynamically initialized (implementation limitation) + /permissive- # Stricter C++ standards conformance /MP /Zi /Zo /EHsc + /Zc:throwingNew # Assumes new never returns null + /Zc:inline # Omits inline functions from object-file output /DNOMINMAX) if (DYNARMIC_WARNINGS_AS_ERRORS)