From 1c21519d5dcd41fbabd11b9db0d0d6ffa99c8368 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 17 Feb 2019 19:44:20 -1000 Subject: [PATCH] Implicit switch fallthrough refactor --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fc9fcfc..a281de2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -273,6 +273,10 @@ if(NOT NX) add_subdirectory(glslang/SPIRV) 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 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/glslang )