Skip to content

Commit 68514c4

Browse files
committed
add clang-msvc-ci
1 parent d991e93 commit 68514c4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cmake/QuillUtils.cmake

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@ function(set_common_compile_options target_name)
6464
-Wno-gnu-zero-variadic-macro-arguments
6565
>
6666

67-
# MSVC-specific options (including Clang on Windows)
68-
$<$<PLATFORM_ID:Windows>:/bigobj /WX /W4 /wd4324 /wd4996>
67+
# MSVC-specific options
68+
$<$<AND:$<CXX_COMPILER_ID:MSVC>,$<PLATFORM_ID:Windows>>:/bigobj /WX /W4 /wd4324 /wd4996>
69+
70+
# Clang on Windows (use -f flags instead of /f flags)
71+
$<$<AND:$<CXX_COMPILER_ID:Clang>,$<PLATFORM_ID:Windows>>:-Wno-gnu-zero-variadic-macro-arguments -Werror -Wall -Wextra>
6972
)
7073

7174
if (QUILL_NO_EXCEPTIONS)

0 commit comments

Comments
 (0)