Skip to content

Commit 47a9dab

Browse files
Disable -Wimplicit-fallthrough for mmatch
1 parent 05d933c commit 47a9dab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

third-party/mmatch/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ set(mmatch_SOURCES
66

77
add_library(mmatch OBJECT ${mmatch_SOURCES})
88

9+
if(NOT MSVC)
10+
target_compile_options(mmatch
11+
PRIVATE
12+
-Wno-implicit-fallthrough
13+
)
14+
endif()
15+
916
set_target_properties(
1017
mmatch PROPERTIES
1118
FOLDER Lib

0 commit comments

Comments
 (0)