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:
Clownacy 2020-04-01 15:31:02 +01:00
parent b74aac6b3c
commit 6301c01315

View file

@ -423,7 +423,7 @@ if(BACKEND_PLATFORM MATCHES "SDL2" OR BACKEND_AUDIO MATCHES "SDL2")
message(STATUS "Using local SDL2")
set(SDL_SHARED_ENABLED_BY_DEFAULT OFF)
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()
add_subdirectory("external/SDL2" EXCLUDE_FROM_ALL)
target_link_libraries(CSE2 PRIVATE SDL2-static SDL2main)