ref: 6301c0131585a16f777bf5080931f72f0477c99c
parent: b74aac6b3c1e7274078803816bf46bf98be2e2c6
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Apr 1 11:31:02 EDT 2020
Shup up a warning when using local SDL2 Really need to update to SDL2 2.0.12 at some point.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -423,7 +423,7 @@
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)
--
⑨