Skip to content

Commit 2661dd0

Browse files
authored
Update CMakeLists.txt, /Zc:preprocessor only for CL not ClangCL
1 parent 1088c23 commit 2661dd0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ endif()
115115
if(MSVC)
116116
# use new Standard Conforming Preprocessor
117117
# https://learn.microsoft.com/en-us/cpp/preprocessor/preprocessor-experimental-overview?view=msvc-170
118-
add_compile_options(/Zc:preprocessor)
118+
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
119+
add_compile_options(/Zc:preprocessor)
120+
endif()
119121
endif()
120122

121123
# enable control flow guard

0 commit comments

Comments
 (0)