mirror of
https://github.com/InoriRus/Kyty.git
synced 2026-08-28 05:06:40 +00:00
fix sdl2 warning
This commit is contained in:
Vendored
+2
-1
@@ -1,10 +1,11 @@
|
|||||||
set(SDL_STATIC ON CACHE BOOL "" FORCE)
|
set(SDL_STATIC ON CACHE BOOL "" FORCE)
|
||||||
set(SDL_SHARED OFF CACHE BOOL "" FORCE)
|
set(SDL_SHARED OFF CACHE BOOL "" FORCE)
|
||||||
|
set(SDL_TEST OFF CACHE BOOL "" FORCE)
|
||||||
|
|
||||||
add_subdirectory(sdl2 build_sdl2)
|
add_subdirectory(sdl2 build_sdl2)
|
||||||
|
|
||||||
if (CLANG AND NOT ANDROID)
|
if (CLANG AND NOT ANDROID)
|
||||||
target_compile_options(SDL2-static PRIVATE -Wno-pragma-pack -Wno-unused-command-line-argument -Wno-incompatible-function-pointer-types)
|
target_compile_options(SDL2-static PRIVATE -Wno-pragma-pack -Wno-unused-command-line-argument -Wno-incompatible-function-pointer-types -Wno-unused-const-variable)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (MSVC AND NOT CLANG)
|
if (MSVC AND NOT CLANG)
|
||||||
|
|||||||
Reference in New Issue
Block a user