Implicit switch fallthrough refactor

This commit is contained in:
Jack Andersen 2019-02-17 19:44:20 -10:00
parent 45db327fb3
commit 1c21519d5d
1 changed files with 4 additions and 0 deletions

View File

@ -273,6 +273,10 @@ if(NOT NX)
add_subdirectory(glslang/SPIRV) add_subdirectory(glslang/SPIRV)
add_subdirectory(glslang/StandAlone) add_subdirectory(glslang/StandAlone)
if (NOT MSVC)
set_target_properties(glslang SPIRV PROPERTIES COMPILE_FLAGS -Wno-implicit-fallthrough)
endif()
target_include_directories(glslang-default-resource-limits target_include_directories(glslang-default-resource-limits
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/glslang PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/glslang
) )