From ae6c4223e2a665ddfaa925c5f956185d8688a5a6 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 17 Apr 2020 12:34:09 -0700 Subject: [PATCH] Don't add -Werror=implicit-fallthrough for MSVC MSVC doesn't have a neat equivalent, but most development happens on Linux anyway with Clang/GCC, so it's fine to leave this error out for MSVC. --- desktop_version/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop_version/CMakeLists.txt b/desktop_version/CMakeLists.txt index d2d28f9e..e1b64fa9 100644 --- a/desktop_version/CMakeLists.txt +++ b/desktop_version/CMakeLists.txt @@ -150,7 +150,9 @@ ELSEIF(CUSTOM_LEVEL_SUPPORT STREQUAL "DISABLED") ADD_DEFINITIONS(-DNO_CUSTOM_LEVELS -DNO_EDITOR) ENDIF() -TARGET_COMPILE_OPTIONS(VVVVVV PRIVATE -Werror=implicit-fallthrough) +IF (NOT MSVC) + TARGET_COMPILE_OPTIONS(VVVVVV PRIVATE -Werror=implicit-fallthrough) +ENDIF() # Library information ADD_LIBRARY(tinyxml-static STATIC ${XML_SRC})