From 6301c0131585a16f777bf5080931f72f0477c99c Mon Sep 17 00:00:00 2001 From: Clownacy Date: Wed, 1 Apr 2020 15:31:02 +0100 Subject: [PATCH] Shup up a warning when using local SDL2 Really need to update to SDL2 2.0.12 at some point. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 265bea8a..da60e178 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)