ref: e925880f5be8ad3bc2f3dfc564d4944051bfc8b1
parent: ce3a09ee03be91d042b0284ffa3bfe3bb1f675db
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed May 8 10:55:53 EDT 2019
Fixed VS 2017 WinXP builds when using local libs Turns out vcpkg enables this for its build too.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -338,6 +338,9 @@
# Compile it ourselves
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
+ endif()
add_subdirectory("external/SDL2" EXCLUDE_FROM_ALL)
target_link_libraries(CSE2 SDL2-static SDL2main)
endif()