From 654bce6cd1117763cb54821c5c1d8ca8beafe976 Mon Sep 17 00:00:00 2001 From: Jesper Juhl Date: Fri, 5 Jun 2026 20:58:07 +0200 Subject: [PATCH] Use /volatile:iso when building with MSVC Although volatile is not used much currently (and it shouldn't be) it's nice to know that it will behave according to the standard (and like other compilers do). --- cmake/Macros.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/Macros.cmake b/cmake/Macros.cmake index de3840f68..4181d4b40 100644 --- a/cmake/Macros.cmake +++ b/cmake/Macros.cmake @@ -54,6 +54,7 @@ function(tgui_set_global_compile_flags target) /Zc:__cplusplus /Zc:preprocessor /Zc:inline + /volatile:iso ) else() target_compile_options(${target} PRIVATE