diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 467d769a2..c906c5a50 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -164,7 +164,7 @@ if (ENABLE_SDL2) | |||
| 164 | set(SDL2_LIBRARIES "SDL2::SDL2") | 164 | set(SDL2_LIBRARIES "SDL2::SDL2") |
| 165 | endif() | 165 | endif() |
| 166 | 166 | ||
| 167 | include_directories(${SDL2_INCLUDE_DIRS}) | 167 | include_directories(SYSTEM ${SDL2_INCLUDE_DIRS}) |
| 168 | add_library(SDL2 INTERFACE) | 168 | add_library(SDL2 INTERFACE) |
| 169 | target_link_libraries(SDL2 INTERFACE "${SDL2_LIBRARIES}") | 169 | target_link_libraries(SDL2 INTERFACE "${SDL2_LIBRARIES}") |
| 170 | endif() | 170 | endif() |