chore(CMake): enable standard conforming MSVC preprocessor (#25828)

This commit is contained in:
kb31
2026-05-19 01:44:19 +01:00
committed by GitHub
parent dfa1009869
commit 771253f43d

View File

@@ -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