From 9d33ea3136cce5c89c9ef7511dacc7b620b1d6a1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 4 May 2019 00:46:22 -0400 Subject: [PATCH] CMakeLists: Specify the /volatile flag with standard-conforming semantics Makes Windows builds more standard-compliant. Given we currently make no use of volatile, and the libraries we currently use don't use it any meaningful way, this is safe to specify without worrying. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ce9a9d2d..c9aa5db8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,6 +58,7 @@ if (MSVC) /Zc:externConstexpr # Allows external linkage for variables declared "extern constexpr", as the standard permits. /Zc:inline # Omits inline functions from object-file output. /Zc:throwingNew # Assumes new (without std::nothrow) never returns null. + /volatile:iso # Use strict standard-abiding volatile semantics /DNOMINMAX) if (DYNARMIC_WARNINGS_AS_ERRORS)