Skip to content

Commit 771253f

Browse files
authored
chore(CMake): enable standard conforming MSVC preprocessor (azerothcore#25828)
1 parent dfa1009 commit 771253f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/cmake/compiler/msvc/settings.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ target_compile_options(acore-compile-option-interface
3636
INTERFACE
3737
/utf-8)
3838

39+
target_compile_options(acore-compile-option-interface
40+
INTERFACE
41+
/Zc:preprocessor)
42+
message(STATUS "MSVC: Enabled standard conforming preprocessor")
43+
3944
if(PLATFORM EQUAL 64)
4045
# This definition is necessary to work around a bug with Intellisense described
4146
# here: http://tinyurl.com/2cb428. Syntax highlighting is important for proper

0 commit comments

Comments
 (0)