Fixed VS 2017 WinXP builds when using local libs

Turns out vcpkg enables this for its build too.
This commit is contained in:
Clownacy 2019-05-08 14:55:53 +01:00
parent ce3a09ee03
commit e925880f5b

View file

@ -338,6 +338,9 @@ else()
# 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()