Fixed VS 2017 WinXP builds when using local libs
Turns out vcpkg enables this for its build too.
This commit is contained in:
parent
ce3a09ee03
commit
e925880f5b
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue