Shup up a warning when using local SDL2
Really need to update to SDL2 2.0.12 at some point.
This commit is contained in:
parent
b74aac6b3c
commit
6301c01315
1 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,7 @@ if(BACKEND_PLATFORM MATCHES "SDL2" OR BACKEND_AUDIO MATCHES "SDL2")
|
||||||
message(STATUS "Using local SDL2")
|
message(STATUS "Using local SDL2")
|
||||||
set(SDL_SHARED_ENABLED_BY_DEFAULT OFF)
|
set(SDL_SHARED_ENABLED_BY_DEFAULT OFF)
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set(LIBC ON) # Needed to prevent possible 'symbol already defined' errors
|
set(LIBC ON CACHE INTERNAL "" FORCE) # Needed to prevent possible 'symbol already defined' errors
|
||||||
endif()
|
endif()
|
||||||
add_subdirectory("external/SDL2" EXCLUDE_FROM_ALL)
|
add_subdirectory("external/SDL2" EXCLUDE_FROM_ALL)
|
||||||
target_link_libraries(CSE2 PRIVATE SDL2-static SDL2main)
|
target_link_libraries(CSE2 PRIVATE SDL2-static SDL2main)
|
||||||
|
|
Loading…
Add table
Reference in a new issue