mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
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.
This commit is contained in:
parent
57f027e478
commit
ae6c4223e2
1 changed files with 3 additions and 1 deletions
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue