Merge pull request #3719 from jbeich/clang

Unbreak -Werror=implicit-fallthrough with Clang
This commit is contained in:
Rodrigo Locatti 2020-04-18 21:43:12 -03:00 committed by GitHub
commit 4d7d3651f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,7 @@ if (ENABLE_SDL2)
set(SDL2_LIBRARIES "SDL2::SDL2") set(SDL2_LIBRARIES "SDL2::SDL2")
endif() endif()
include_directories(${SDL2_INCLUDE_DIRS}) include_directories(SYSTEM ${SDL2_INCLUDE_DIRS})
add_library(SDL2 INTERFACE) add_library(SDL2 INTERFACE)
target_link_libraries(SDL2 INTERFACE "${SDL2_LIBRARIES}") target_link_libraries(SDL2 INTERFACE "${SDL2_LIBRARIES}")
endif() endif()