Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

cmake: Silence -Werror=implicit-fallthrough in SDL2 headers

Jan Beichc6bd2823bbb8
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 467d769a2d..c906c5a50f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -164,7 +164,7 @@ if (ENABLE_SDL2)
set(SDL2_LIBRARIES "SDL2::SDL2")
endif()
- include_directories(${SDL2_INCLUDE_DIRS})
+ include_directories(SYSTEM ${SDL2_INCLUDE_DIRS})
add_library(SDL2 INTERFACE)
target_link_libraries(SDL2 INTERFACE "${SDL2_LIBRARIES}")
endif()