From 771253f43d9d1158fb6c75948e30402506e3cf8f Mon Sep 17 00:00:00 2001 From: kb31 Date: Tue, 19 May 2026 01:44:19 +0100 Subject: [PATCH] chore(CMake): enable standard conforming MSVC preprocessor (#25828) --- src/cmake/compiler/msvc/settings.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cmake/compiler/msvc/settings.cmake b/src/cmake/compiler/msvc/settings.cmake index 4a95da0ca..06c567cd4 100644 --- a/src/cmake/compiler/msvc/settings.cmake +++ b/src/cmake/compiler/msvc/settings.cmake @@ -36,6 +36,11 @@ target_compile_options(acore-compile-option-interface INTERFACE /utf-8) +target_compile_options(acore-compile-option-interface + INTERFACE + /Zc:preprocessor) +message(STATUS "MSVC: Enabled standard conforming preprocessor") + if(PLATFORM EQUAL 64) # This definition is necessary to work around a bug with Intellisense described # here: http://tinyurl.com/2cb428. Syntax highlighting is important for proper